(svn r13239) -Fix: certain compilers give false warning about uninitialized variable
authorsmatz
Sat, 24 May 2008 23:18:21 +0000
changeset 9343 3875a510b0ba
parent 9342 6daf441eee26
child 9344 d3b1b1fbbad9
(svn r13239) -Fix: certain compilers give false warning about uninitialized variable
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;