mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-03 20:48:31 +00:00
fix problems with negative numbers (sf.net id #2644593) (thanks Zhoushen Huang)
This commit is contained in:
parent
9c0f04bc10
commit
8bcc287958
@ -134,6 +134,8 @@ enum arg_type get_arg_type(const char *arg)
|
||||
if (*p == '"' && *e == '"')
|
||||
return ARG_STRING;
|
||||
|
||||
if (*p == '-') //allow negative values
|
||||
p++;
|
||||
while (p != e) {
|
||||
if (!isdigit(*p))
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user