mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Fix bug in $if_existing.
Ref: http://sourceforge.net/tracker/?func=detail&aid=2979974&group_id=143975&atid=757308
This commit is contained in:
parent
c8e6874065
commit
9c5e5d86bd
@ -463,7 +463,7 @@ int check_contains(char *f, char *s)
|
|||||||
}
|
}
|
||||||
fclose(where);
|
fclose(where);
|
||||||
} else {
|
} else {
|
||||||
NORM_ERR("Could not open the file");
|
NORM_ERR("Could not open the file '%s'", f);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -1330,7 +1330,7 @@ void generate_text_internal(char *p, int p_max_size,
|
|||||||
DO_JUMP;
|
DO_JUMP;
|
||||||
} else if (spc) {
|
} else if (spc) {
|
||||||
*spc = '\0';
|
*spc = '\0';
|
||||||
if (check_contains(obj->data.s, spc + 1))
|
if (!check_contains(obj->data.s, spc + 1))
|
||||||
DO_JUMP;
|
DO_JUMP;
|
||||||
*spc = ' ';
|
*spc = ' ';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user