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 <[email protected]>
Acked-by: Steve Lawrence <[email protected]>

Change-Id: Iddc2420c60f68b267df2af951620e92b3c8c14db
1 file changed