From 60ae7993210f67abde29b11d03623fbcbfdc732e 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') 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-70-g09d2