ip6: fix a crash when /proc/sys/net/ipv6/conf/<iface>/* files are not present

This commit is contained in:
Jiří Klimeš 2010-04-27 15:59:46 +02:00
parent 871f9934fa
commit ea1e6f2f7b

View 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;