+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-09 Tor Lillqvist <tml@novell.com>
* glib/gstdio.h
+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-09 Tor Lillqvist <tml@novell.com>
* glib/gstdio.h
+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-09 Tor Lillqvist <tml@novell.com>
* glib/gstdio.h
+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-09 Tor Lillqvist <tml@novell.com>
* glib/gstdio.h
#define TRANSLATE(group, str) (((group)->translate_func ? (* (group)->translate_func) ((str), (group)->translate_data) : (str)))
-typedef struct {
+typedef struct
+{
GOptionArg arg_type;
gpointer arg_data;
- union {
+ union
+ {
gboolean bool;
gint integer;
gchar *str;
gchar **array;
} prev;
- union {
+ union
+ {
gchar *str;
- struct {
+ struct
+ {
gint len;
gchar **data;
} array;
GError **error)
{
gchar *end;
- glong tmp = strtol (arg, &end, 0);
+ glong tmp;
errno = 0;
+ tmp = strtol (arg, &end, 0);
if (*arg == '\0' || *end != '\0')
{