ip6: fix a crash when /proc/sys/net/ipv6/conf/<iface>/* files are not present
authorJiří Klimeš <jklimes@redhat.com>
Tue, 27 Apr 2010 13:59:46 +0000 (15:59 +0200)
committerJiří Klimeš <jklimes@redhat.com>
Tue, 27 Apr 2010 13:59:46 +0000 (15:59 +0200)
src/ip6-manager/nm-ip6-manager.c

index 4ea9538..d5afcbc 100644 (file)
@@ -140,7 +140,7 @@ nm_ip6_device_destroy (NMIP6Device *device)
 static gboolean
 get_proc_sys_net_value (const char *path, const char *iface, guint32 *out_value)
 {
-       GError *error;
+       GError *error = NULL;
        char *contents = NULL;
        gboolean success = FALSE;
        long int tmp;