projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
solaris-fixes branch: Applied the swap-patch by Christophe Kalt.
[collectd.git]
/
src
/
common.c
diff --git
a/src/common.c
b/src/common.c
index
d1f1551
..
78be3af
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-522,7
+522,7
@@
static int log_update_file (char *host, char *file, char *values,
strncpy (full_file, file, 1024);
tmp = full_file + strlen (full_file) - 4;
- assert (
tmp > 0
);
+ assert (
(tmp != NULL) && (tmp > full_file)
);
/* Change the filename for logfiles. */
if (strncmp (tmp, ".rrd", 4) == 0)