projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daedf58
)
Fix this (a pointer was compared with an integer):
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
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)