Code

Fix this (a pointer was compared with an integer):
authorocto <octo>
Fri, 21 Apr 2006 14:41:15 +0000 (14:41 +0000)
committerocto <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

index d1f15513409c137d3430eb3d2420c3f9ec4122dc..78be3afce48a6318336367b618c7660b0bad3034 100644 (file)
@@ -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)