Author: cazfi
Date: Sat Mar  5 13:00:11 2016
New Revision: 32182

URL: http://svn.gna.org/viewcvs/freeciv?rev=32182&view=rev
Log:
Set color option to NULL in addition to freeing it when it's being cleared.

See bug #24351

Modified:
    branches/S2_6/client/options.c

Modified: branches/S2_6/client/options.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/options.c?rev=32182&r1=32181&r2=32182&view=diff
==============================================================================
--- branches/S2_6/client/options.c      (original)
+++ branches/S2_6/client/options.c      Sat Mar  5 13:00:11 2016
@@ -1,4 +1,4 @@
-/********************************************************************** 
+/**********************************************************************
  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -3351,6 +3351,7 @@
   } else {                                                                  \
     if (NULL == color) {                                                    \
       free((void *) color_tgt);                                             \
+      color_tgt = NULL;                                                     \
       changed = TRUE;                                                       \
     } else if (0 != strcmp(color_tgt, color)) {                             \
       free((void *) color_tgt);                                             \


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

Reply via email to