mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Fix minor environment variable bug.
This commit is contained in:
parent
d1b6548c55
commit
2dfc0ee6b4
@ -2830,13 +2830,16 @@ static int extract_variable_text_internal(struct text_object *retval, const char
|
||||
var = getenv(buf);
|
||||
if (var) {
|
||||
obj = create_plain_text(var);
|
||||
if (obj)
|
||||
if (obj) {
|
||||
append_object(retval, obj);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
/* if variable wasn't found in environment, use some special */
|
||||
|
||||
arg = 0;
|
||||
|
||||
/* split arg */
|
||||
if (strchr(buf, ' ')) {
|
||||
arg = strchr(buf, ' ');
|
||||
|
Loading…
Reference in New Issue
Block a user