From e3c7acd6fdb41505246948ee9cb09f9b4915e027 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 19 May 2009 17:39:59 +0000 Subject: [PATCH] Fix clang warning: Although the value stored to 'next' is used in the enclosing expression, the value is never actually read from 'next'. --- urlmatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urlmatch.c b/urlmatch.c index 19388b1b..d888e37d 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -1,4 +1,4 @@ -const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.50 2009/04/17 11:38:28 fabiankeil Exp $"; +const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.51 2009/05/16 13:27:20 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $ @@ -1222,7 +1222,7 @@ int match_portlist(const char *portlist, int port) { char *min, *max, *next, *portlist_copy; - min = next = portlist_copy = strdup(portlist); + min = portlist_copy = strdup(portlist); /* * Zero-terminate first item and remember offset for next -- 2.39.2