commit | b1bbd3030be095b5e5c49c6f899ed8071fb05f30 | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Wed Dec 10 11:28:44 2014 -0800 |
committer | Steve Lawrence <slawrence@tresys.com> | Thu Dec 11 08:29:34 2014 -0500 |
tree | 38b0d7293421000bd7ff937404f9f49f0c64f65d | |
parent | 823ebc8c6b89cb6531fcd943ddb8059bd8743dd9 [diff] |
Clear errno before call to strtol(3). Since strtol(3) doesn't clear errno on success, anything that sets errno prior to this call will make it look like the call failed. This happens when built with ASAN. Signed-off-by: Dan Albert <danalbert@google.com> Acked-by: Steve Lawrence <slawrence@tresys.com>