mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 04:55:08 +00:00
Merge branch 'master' into imlib2
This commit is contained in:
commit
a1fc53be97
@ -1,3 +1,6 @@
|
|||||||
|
2009-05-07
|
||||||
|
* Fix occasional cpubar segfaults
|
||||||
|
|
||||||
2009-05-05
|
2009-05-05
|
||||||
* Added some completely pointless OpenMP optimizations(?)
|
* Added some completely pointless OpenMP optimizations(?)
|
||||||
|
|
||||||
|
@ -1299,7 +1299,7 @@ static struct text_object *construct_text_object(const char *s,
|
|||||||
END OBJ(cached, INFO_BUFFERS)
|
END OBJ(cached, INFO_BUFFERS)
|
||||||
#define SCAN_CPU(__arg, __var) { \
|
#define SCAN_CPU(__arg, __var) { \
|
||||||
int __offset; \
|
int __offset; \
|
||||||
if (__arg && sscanf(__arg, " cpu%u %n", &__var, &__offset)) \
|
if (__arg && sscanf(__arg, " cpu%u %n", &__var, &__offset) == 2) \
|
||||||
__arg += __offset; \
|
__arg += __offset; \
|
||||||
else \
|
else \
|
||||||
__var = 0; \
|
__var = 0; \
|
||||||
|
Loading…
Reference in New Issue
Block a user