forked from AuroraMiddleware/gtk
Set errno to 0 before calling strtoul
We check errno for failure, so ensure its cleared first. (#573922)
This commit is contained in:
parent
4774d9c1fd
commit
bb093cf44c
@ -396,6 +396,7 @@ extract_time_from_startup_id (const gchar* startup_id)
|
||||
/* Skip past the "_TIME" part */
|
||||
timestr += 5;
|
||||
|
||||
errno = 0;
|
||||
timestamp = strtoul (timestr, &end, 0);
|
||||
if (end != timestr && errno == 0)
|
||||
retval = timestamp;
|
||||
|
Loading…
Reference in New Issue
Block a user