[PATCH] fix - access uninitialized variable
- From: Alexander Sack <asac jwsdot com>
- To: networkmanager-list gnome org
- Subject: [PATCH] fix - access uninitialized variable
- Date: Tue, 17 Jun 2008 11:14:32 +0200
gcc 4.3 was smart and warned about this ...
=== modified file 'src/dnsmasq-manager/nm-dnsmasq-manager.c'
--- src/dnsmasq-manager/nm-dnsmasq-manager.c 2008-06-10 02:52:33 +0000
+++ src/dnsmasq-manager/nm-dnsmasq-manager.c 2008-06-17 09:04:51 +0000
@@ -187,16 +187,18 @@ dm_exit_code (guint dm_exit_status)
msg = "Memory allocation failure";
break;
case 5:
msg = "Other problem";
break;
default:
if (dm_exit_status >= 11)
msg = "Lease-script 'init' process failure";
+ else
+ msg = "Success";
break;
}
g_warning ("dnsmasq exited with error: %s (%d)", msg, dm_exit_status);
}
static void
dm_watch_cb (GPid pid, gint status, gpointer user_data)
- Alexander
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]