Author: cazfi
Date: Fri May  5 07:51:18 2017
New Revision: 35396

URL: http://svn.gna.org/viewcvs/freeciv?rev=35396&view=rev
Log:
Fix comparison between pointer and zero character

See hrm Bug #657309

Modified:
    branches/S3_0/client/gui-sdl2/gui_string.c

Modified: branches/S3_0/client/gui-sdl2/gui_string.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/gui-sdl2/gui_string.c?rev=35396&r1=35395&r2=35396&view=diff
==============================================================================
--- branches/S3_0/client/gui-sdl2/gui_string.c  (original)
+++ branches/S3_0/client/gui-sdl2/gui_string.c  Fri May  5 07:51:18 2017
@@ -98,7 +98,7 @@
 **************************************************************************/
 void utf8_str_size(utf8_str *pstr, SDL_Rect *fill)
 {
-  if (pstr != NULL && pstr->text != NULL && pstr->text != '\0') {
+  if (pstr != NULL && pstr->text != NULL && pstr->text[0] != '\0') {
     char *current = pstr->text;
     char c = *current;
     bool new_line = FALSE;


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

Reply via email to