apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgollu...@apache.org
Subject svn commit: r982735 - /apr/apr/trunk/memcache/apr_memcache.c
Date Thu, 05 Aug 2010 19:14:23 GMT
Author: pgollucci
Date: Thu Aug  5 19:14:23 2010
New Revision: 982735

URL: http://svn.apache.org/viewvc?rev=982735&view=rev
Log:
- start is never used

Reported by:	clang static analyzer


Modified:
    apr/apr/trunk/memcache/apr_memcache.c

Modified: apr/apr/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/memcache/apr_memcache.c?rev=982735&r1=982734&r2=982735&view=diff
==============================================================================
--- apr/apr/trunk/memcache/apr_memcache.c (original)
+++ apr/apr/trunk/memcache/apr_memcache.c Thu Aug  5 19:14:23 2010
@@ -772,11 +772,9 @@ apr_memcache_getp(apr_memcache_t *mc,
     if (strncmp(MS_VALUE, conn->buffer, MS_VALUE_LEN) == 0) {
         char *flags;
         char *length;
-        char *start;
         char *last;
         apr_size_t len = 0;
 
-        start = conn->buffer;
         flags = apr_strtok(conn->buffer, " ", &last);
         flags = apr_strtok(NULL, " ", &last);
         flags = apr_strtok(NULL, " ", &last);
@@ -1345,12 +1343,10 @@ apr_memcache_multgetp(apr_memcache_t *mc
                char *key;
                char *flags;
                char *length;
-               char *start;
                char *last;
                char *data;
                apr_size_t len = 0;
 
-               start = conn->buffer;
                key = apr_strtok(conn->buffer, " ", &last); /* just the VALUE, ignore
*/
                key = apr_strtok(NULL, " ", &last);
                flags = apr_strtok(NULL, " ", &last);



Mime
View raw message