Ticket #3856: mc-3856-pointer-vs-character-constant.patch

File mc-3856-pointer-vs-character-constant.patch, 584 bytes (added by egmont, 3 years ago)
  • src/filemanager/boxes.c

    diff --git a/src/filemanager/boxes.c b/src/filemanager/boxes.c
    index 4a060a82e..64168f232 100644
    a b confvfs_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void 
    425425static void 
    426426jobs_fill_listbox (WListbox * list) 
    427427{ 
    428     static const char *state_str[2] = { "", "" }; 
     428    static const char *state_str[2] = { NULL, NULL }; 
    429429    TaskList *tl; 
    430430 
    431     if (state_str[0] == '\0') 
     431    if (state_str[0] == NULL) 
    432432    { 
    433433        state_str[0] = _("Running"); 
    434434        state_str[1] = _("Stopped");