mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 10:07:13 +02:00
Set errno to 0 before calling strtol. (#306388, Morten Welinder)
2005-06-09 Matthias Clasen <mclasen@redhat.com> * glib/goption.c (parse_int): Set errno to 0 before calling strtol. (#306388, Morten Welinder)
This commit is contained in:
committed by
Matthias Clasen
parent
1d28558146
commit
c931e6aa16
@@ -1,3 +1,8 @@
|
||||
2005-06-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/goption.c (parse_int): Set errno to 0 before calling
|
||||
strtol. (#306388, Morten Welinder)
|
||||
|
||||
2005-06-08 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gutils.c (get_windows_directory_root): New helper function
|
||||
|
@@ -1,3 +1,8 @@
|
||||
2005-06-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/goption.c (parse_int): Set errno to 0 before calling
|
||||
strtol. (#306388, Morten Welinder)
|
||||
|
||||
2005-06-08 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gutils.c (get_windows_directory_root): New helper function
|
||||
|
@@ -1,3 +1,8 @@
|
||||
2005-06-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/goption.c (parse_int): Set errno to 0 before calling
|
||||
strtol. (#306388, Morten Welinder)
|
||||
|
||||
2005-06-08 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gutils.c (get_windows_directory_root): New helper function
|
||||
|
@@ -1,3 +1,8 @@
|
||||
2005-06-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/goption.c (parse_int): Set errno to 0 before calling
|
||||
strtol. (#306388, Morten Welinder)
|
||||
|
||||
2005-06-08 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gutils.c (get_windows_directory_root): New helper function
|
||||
|
@@ -610,9 +610,10 @@ parse_int (const gchar *arg_name,
|
||||
GError **error)
|
||||
{
|
||||
gchar *end;
|
||||
glong tmp = strtol (arg, &end, 0);
|
||||
glong tmp;
|
||||
|
||||
errno = 0;
|
||||
tmp = strtol (arg, &end, 0);
|
||||
|
||||
if (*arg == '\0' || *end != '\0')
|
||||
{
|
||||
|
Reference in New Issue
Block a user