Author: cazfi
Date: Thu Mar  5 20:01:26 2015
New Revision: 28421

URL: http://svn.gna.org/viewcvs/freeciv?rev=28421&view=rev
Log:
Check against empty startunits setting.

See bug #23346

Modified:
    branches/S2_5/server/settings.c

Modified: branches/S2_5/server/settings.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/settings.c?rev=28421&r1=28420&r2=28421&view=diff
==============================================================================
--- branches/S2_5/server/settings.c     (original)
+++ branches/S2_5/server/settings.c     Thu Mar  5 20:01:26 2015
@@ -703,6 +703,10 @@
 {
   int len = strlen(value), i;
 
+  if (len == 0) {
+    return FALSE;
+  }
+
   /* We check each character individually to see if it's valid, and
    * also make sure there is at least one city founder. */
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to