Skip to content

glib-2.0: Reset errno before calling strto*() functions.

philippejer requested to merge philippejer/vala:wip/reset-errno into master

Standard library functions only set errno on error and these particular functions return an "in-band" error indicator (the error indicator is also a normal return value).

There's a great explanation (and reference) here: https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152351

Merge request reports