mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 20:31:17 +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);
|
||||
} else {
|
||||
NORM_ERR("Could not open the file");
|
||||
NORM_ERR("Could not open the file '%s'", f);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@ -1330,7 +1330,7 @@ void generate_text_internal(char *p, int p_max_size,
|
||||
DO_JUMP;
|
||||
} else if (spc) {
|
||||
*spc = '\0';
|
||||
if (check_contains(obj->data.s, spc + 1))
|
||||
if (!check_contains(obj->data.s, spc + 1))
|
||||
DO_JUMP;
|
||||
*spc = ' ';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user