# HG changeset patch # User smatz # Date 1211671101 0 # Node ID 3875a510b0bae14f0dc72b7f9912f3e69660e31f # Parent 6daf441eee266808dbadbc3ab4b79ce37ac86faf (svn r13239) -Fix: certain compilers give false warning about uninitialized variable diff -r 6daf441eee26 -r 3875a510b0ba src/depot_gui.cpp --- a/src/depot_gui.cpp Sat May 24 22:15:10 2008 +0000 +++ b/src/depot_gui.cpp Sat May 24 23:18:21 2008 +0000 @@ -879,7 +879,7 @@ { switch (widget) { case DEPOT_WIDGET_MATRIX: { - Vehicle *v; + Vehicle *v = NULL; VehicleID sel = this->sel; this->sel = INVALID_VEHICLE;