<URL: http://bugs.freeciv.org/Ticket/Display.html?id=33979 >

 Variable 'alive' will be used uninitialized if no path to refuel
point is found. Will commit attached fix immediately.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/unittools.c freeciv/server/unittools.c
--- freeciv/server/unittools.c	2007-01-17 17:46:22.000000000 +0200
+++ freeciv/server/unittools.c	2007-01-18 15:26:37.000000000 +0200
@@ -396,7 +396,7 @@
         if (carrier) {
           put_unit_onto_transporter(punit, carrier);
         } else {
-          bool alive;
+          bool alive = true;
 
           struct pf_map *map;
           struct pf_parameter parameter;
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to