Fix clang warning: Although the value stored to k is used
authorFabian Keil <fk@fabiankeil.de>
Tue, 19 May 2009 17:42:32 +0000 (17:42 +0000)
committerFabian Keil <fk@fabiankeil.de>
Tue, 19 May 2009 17:42:32 +0000 (17:42 +0000)
in the enclosing expression, the value is never actually
read from k.

pcrs.c

diff --git a/pcrs.c b/pcrs.c
index fcc73be..9b2cfb9 100644 (file)
--- a/pcrs.c
+++ b/pcrs.c
@@ -1,4 +1,4 @@
-const char pcrs_rcs[] = "$Id: pcrs.c,v 1.29 2007/09/22 16:17:19 fabiankeil Exp $";
+const char pcrs_rcs[] = "$Id: pcrs.c,v 1.30 2009/05/16 13:27:20 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/pcrs.c,v $
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/pcrs.c,v $
@@ -746,7 +746,7 @@ int pcrs_execute(pcrs_job *job, const char *subject, size_t subject_length, char
    pcrs_match *matches, *dummy;
    char *result_offset;
 
    pcrs_match *matches, *dummy;
    char *result_offset;
 
-   offset = i = k = 0;
+   offset = i = 0;
 
    /* 
     * Sanity check & memory allocation
 
    /* 
     * Sanity check & memory allocation