You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by pq...@apache.org on 2007/09/21 00:15:40 UTC
svn commit: r577947 - /apr/apr-util/trunk/memcache/apr_memcache.c
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));