Skip to content
Commit cd0dccd0 authored by Adrian Negreanu's avatar Adrian Negreanu Committed by Kristian Høgsberg
Browse files

scanner: set errno=0 before strtol



POSIX says to set errno=0 before calling strtol since
the return value alne cannot tell a failure.

on ubuntu armel I get:

  ../src/wayland-scanner client-header < ../../protocol/wayland.xml > wayland-client-protocol.h
  <stdin>:1188: error: invalid integer (2)

Signed-off-by: default avatarAdrian Negreanu <adrian.m.negreanu@intel.com>
parent 01bde631
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment