apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgollu...@apache.org
Subject svn commit: r982409 - /apr/apr/trunk/memcache/apr_memcache.c
Date Wed, 04 Aug 2010 21:26:55 GMT
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;
         }



Mime
View raw message