(svn r6516) -Fix r6513: killed warnings about two variables being used uninitialized
authorbjarni
Wed, 27 Sep 2006 00:25:27 +0000
changeset 4641 388b816eef86
parent 4640 4e380e2ecfa7
child 4642 e27b0f7e89e9
(svn r6516) -Fix r6513: killed warnings about two variables being used uninitialized
This is not even correct since it's set in if (a) and later used in another if (a), but GCC didn't detect that
depot_gui.c
--- a/depot_gui.c	Tue Sep 26 19:20:35 2006 +0000
+++ b/depot_gui.c	Wed Sep 27 00:25:27 2006 +0000
@@ -301,7 +301,7 @@
 static int GetVehicleFromDepotWndPt(const Window *w, int x, int y, Vehicle **veh, GetDepotVehiclePtData *d)
 {
 	Vehicle **vl = WP(w, depot_d).vehicle_list;
-	uint xt, row, xm, ym;
+	uint xt, row, xm = 0, ym = 0;
 	int pos, skip = 0;
 
 	if (WP(w, depot_d).type == VEH_Train) {