mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01: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:
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>
|
2005-06-08 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* glib/gutils.c (get_windows_directory_root): New helper function
|
* 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>
|
2005-06-08 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* glib/gutils.c (get_windows_directory_root): New helper function
|
* 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>
|
2005-06-08 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* glib/gutils.c (get_windows_directory_root): New helper function
|
* 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>
|
2005-06-08 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* glib/gutils.c (get_windows_directory_root): New helper function
|
* glib/gutils.c (get_windows_directory_root): New helper function
|
||||||
|
@ -610,9 +610,10 @@ parse_int (const gchar *arg_name,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
gchar *end;
|
gchar *end;
|
||||||
glong tmp = strtol (arg, &end, 0);
|
glong tmp;
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
tmp = strtol (arg, &end, 0);
|
||||||
|
|
||||||
if (*arg == '\0' || *end != '\0')
|
if (*arg == '\0' || *end != '\0')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user