From 2b8d7404ee1426ec2596d2e88addc588e19d8dbb Mon Sep 17 00:00:00 2001 From: octo Date: Fri, 21 Apr 2006 14:41:15 +0000 Subject: [PATCH] Fix this (a pointer was compared with an integer): "common.c", line 525: warning: improper pointer/integer combination: op ">" --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2