Author: cazfi Date: Fri May 5 07:51:12 2017 New Revision: 35395 URL: http://svn.gna.org/viewcvs/freeciv?rev=35395&view=rev Log: Fix comparison between pointer and zero character
See hrm Bug #657309 Modified: trunk/client/gui-sdl2/gui_string.c Modified: trunk/client/gui-sdl2/gui_string.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/gui_string.c?rev=35395&r1=35394&r2=35395&view=diff ============================================================================== --- trunk/client/gui-sdl2/gui_string.c (original) +++ trunk/client/gui-sdl2/gui_string.c Fri May 5 07:51:12 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