[PATCH] fix - access uninitialized variable



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]