apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r577947 - /apr/apr-util/trunk/memcache/apr_memcache.c
Date Thu, 20 Sep 2007 22:15:40 GMT
Author: pquerna
Date: Thu Sep 20 15:15:40 2007
New Revision: 577947

URL: http://svn.apache.org/viewvc?rev=577947&view=rev
Log:
Spell length correctly in the code. Check for it in another place.

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

Modified: apr/apr-util/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/memcache/apr_memcache.c?rev=577947&r1=577946&r2=577947&view=diff
==============================================================================
--- apr/apr-util/trunk/memcache/apr_memcache.c (original)
+++ apr/apr-util/trunk/memcache/apr_memcache.c Thu Sep 20 15:15:40 2007
@@ -761,7 +761,7 @@
         }
 
         length = apr_strtok(NULL, " ", &last);
-        if (lenth) {
+        if (length) {
             len = atoi(length);
         }
 
@@ -1307,7 +1307,7 @@
                char *start;
                char *last;
                char *data;
-               apr_size_t len;
+               apr_size_t len = 0;
 
                start = conn->buffer;
                key = apr_strtok(conn->buffer, " ", &last); /* just the VALUE, ignore
*/
@@ -1316,7 +1316,9 @@
 
 
                length = apr_strtok(NULL, " ", &last);
-               len = atoi(length);
+               if (length) {
+                   len = atoi(length);
+               }
 
                value = apr_hash_get(values, key, strlen(key));
 



Mime
View raw message