(jobs_fill_listbox): cleanup pointer-compare warning.

Found by GCC 7.1.0.

boxes.c:431:22: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
     if (state_str[0] == '\0')
                      ^~
boxes.c:431:9: note: did you mean to dereference the pointer?
     if (state_str[0] == '\0')
         ^

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2017-05-11 06:33:54 +00:00 committed by Andrew Borodin
parent a4518eed9e
commit 20398ece6e

View File

@ -428,7 +428,7 @@ jobs_fill_listbox (WListbox * list)
static const char *state_str[2] = { "", "" }; static const char *state_str[2] = { "", "" };
TaskList *tl; TaskList *tl;
if (state_str[0] == '\0') if (state_str[0][0] == '\0')
{ {
state_str[0] = _("Running"); state_str[0] = _("Running");
state_str[1] = _("Stopped"); state_str[1] = _("Stopped");