You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by pg...@apache.org on 2010/08/04 23:26:55 UTC
svn commit: r982409 - /apr/apr/trunk/memcache/apr_memcache.c
Author: pgollucci
Date: Wed Aug 4 21:26:55 2010
New Revision: 982409
URL: http://svn.apache.org/viewvc?rev=982409&view=rev
Log:
- this is handling the error condition, not success
[note, testmemcache apparently doesn't hit this path]
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=982409&r1=982408&r2=982409&view=diff
==============================================================================
--- apr/apr/trunk/memcache/apr_memcache.c (original)
+++ apr/apr/trunk/memcache/apr_memcache.c Wed Aug 4 21:26:55 2010
@@ -790,7 +790,7 @@ apr_memcache_getp(apr_memcache_t *mc,
len = strtol(length, (char **)NULL, 10);
}
- if (len != 0 ) {
+ if (len == 0 ) {
*new_length = 0;
*baton = NULL;
}