git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1088
7f574dfc-610e-0410-a909-
a81674777703
2008-03-30
* Added mem_res and mem_vsize to $top.
+ * Improved parsing of diskio args
2008-03-29
* Increased C99 compliance.
ERR("too many diskio stats");
return 0;
}
+ if (new->dev) {
+ free(new->dev);
+ new->dev = 0;
+ }
if (strncmp(s, "/dev/", 5) == 0) {
// supplied a /dev/device arg, so cut off the /dev part
new->dev = strndup(s + 5, text_buffer_size);
fp = 0;
if (!found) {
ERR("diskio device '%s' does not exist", s);
+ return 0;
}
new->current = 0;
new->current_read = 0;