From: octo Date: Fri, 21 Apr 2006 14:41:15 +0000 (+0000) Subject: Fix this (a pointer was compared with an integer): X-Git-Tag: svn-trunk~55 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2b8d7404ee1426ec2596d2e88addc588e19d8dbb;p=collectd.git Fix this (a pointer was compared with an integer): "common.c", line 525: warning: improper pointer/integer combination: op ">" --- diff --git a/src/common.c b/src/common.c index d1f15513..78be3afc 100644 --- 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)