mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(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:
parent
a4518eed9e
commit
20398ece6e
@ -428,7 +428,7 @@ jobs_fill_listbox (WListbox * list)
|
||||
static const char *state_str[2] = { "", "" };
|
||||
TaskList *tl;
|
||||
|
||||
if (state_str[0] == '\0')
|
||||
if (state_str[0][0] == '\0')
|
||||
{
|
||||
state_str[0] = _("Running");
|
||||
state_str[1] = _("Stopped");
|
||||
|
Loading…
Reference in New Issue
Block a user