Author: cazfi
Date: Wed May 20 19:35:02 2015
New Revision: 29113

URL: http://svn.gna.org/viewcvs/freeciv?rev=29113&view=rev
Log:
Fixed compilation with gcc5

See patch #6092

Modified:
    trunk/server/stdinhand.c

Modified: trunk/server/stdinhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/stdinhand.c?rev=29113&r1=29112&r2=29113&view=diff
==============================================================================
--- trunk/server/stdinhand.c    (original)
+++ trunk/server/stdinhand.c    Wed May 20 19:35:02 2015
@@ -3524,7 +3524,9 @@
 
   check_for_full_turn_done();
 
-  end:;
+  end:
+  fc_assert_ret_val(ntokens <= 1, FALSE);
+
   /* free our args */
   for (i = 0; i < ntokens; i++) {
     free(arg[i]);


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

Reply via email to