From ea1e6f2f7b5d491085ca94df9830ad94b23cc8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Tue, 27 Apr 2010 15:59:46 +0200 Subject: [PATCH] ip6: fix a crash when /proc/sys/net/ipv6/conf//* files are not present --- src/ip6-manager/nm-ip6-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ip6-manager/nm-ip6-manager.c b/src/ip6-manager/nm-ip6-manager.c index 4ea9538d5b..d5afcbc048 100644 --- a/src/ip6-manager/nm-ip6-manager.c +++ b/src/ip6-manager/nm-ip6-manager.c @@ -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;