summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a6c2232)
raw | patch | inline | side by side (parent: a6c2232)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 28 Aug 2008 04:13:39 +0000 (04:13 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 28 Aug 2008 04:13:39 +0000 (04:13 +0000) |
program/src/rrd_tool.c | patch | blob | history |
diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c
index 80bdb6e70c399a662b9ef1c7f7aaae7d022453f6..d08d7de74c7d5d6d9a27f073f10ac2461986d804 100644 (file)
--- a/program/src/rrd_tool.c
+++ b/program/src/rrd_tool.c
exit(1);
}
}
- return *aLinePtr = linebuf[0] ? linebuf : 0;
+ if (linebuf[0]){
+ return *aLinePtr = linebuf;
+ }
+ free(linebuf);
+ return *aLinePtr = 0;
}
int main(