From d88e1a218e91ec8b7ddee9f2852f1126ad54a379 Mon Sep 17 00:00:00 2001 From: bjarni Date: Wed, 27 Sep 2006 00:25:27 +0000 Subject: [PATCH] (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depot_gui.c b/depot_gui.c index 80c93ab090..927ed8e915 100644 --- a/depot_gui.c +++ b/depot_gui.c @@ -301,7 +301,7 @@ enum { 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) {