From 7672a059c96ca304b7244cd7fbfe1a05eb03a7c9 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 24 May 2008 23:18:21 +0000 Subject: (svn r13239) -Fix: certain compilers give false warning about uninitialized variable --- src/depot_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/depot_gui.cpp') diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index b755bbfb8..007c192ca 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -879,7 +879,7 @@ struct DepotWindow : Window { { switch (widget) { case DEPOT_WIDGET_MATRIX: { - Vehicle *v; + Vehicle *v = NULL; VehicleID sel = this->sel; this->sel = INVALID_VEHICLE; -- cgit v1.2.3-54-g00ecf