summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: daedf58)
raw | patch | inline | side by side (parent: daedf58)
author | octo <octo> | |
Fri, 21 Apr 2006 14:41:15 +0000 (14:41 +0000) | ||
committer | octo <octo> | |
Fri, 21 Apr 2006 14:41:15 +0000 (14:41 +0000) |
"common.c", line 525: warning: improper pointer/integer combination: op ">"
src/common.c | patch | blob | history |
diff --git a/src/common.c b/src/common.c
index d1f15513409c137d3430eb3d2420c3f9ec4122dc..78be3afce48a6318336367b618c7660b0bad3034 100644 (file)
--- a/src/common.c
+++ b/src/common.c
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)