apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1390494 - /apr/apr-util/branches/1.4.x/test/testmemcache.c
Date Wed, 26 Sep 2012 14:00:35 GMT
Author: trawick
Date: Wed Sep 26 14:00:34 2012
New Revision: 1390494

URL: http://svn.apache.org/viewvc?rev=1390494&view=rev
Log:
fix breakage introduced in r1207697 which could cause a
crash depending on the accidental contents of autodata

values either needs to be NULL or an initialized apr_hash_t *
prior to calling apr_memcache_add_multget_key(); this change
matches working 1.5.x and trunk versions

Modified:
    apr/apr-util/branches/1.4.x/test/testmemcache.c

Modified: apr/apr-util/branches/1.4.x/test/testmemcache.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/test/testmemcache.c?rev=1390494&r1=1390493&r2=1390494&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/test/testmemcache.c (original)
+++ apr/apr-util/branches/1.4.x/test/testmemcache.c Wed Sep 26 14:00:34 2012
@@ -433,6 +433,7 @@ static void test_memcache_multiget(abts_
   rv = apr_memcache_add_server(memcache, server);
   ABTS_ASSERT(tc, "server add failed", rv == APR_SUCCESS);
   
+  values = apr_hash_make(p);
   tdata = apr_hash_make(p);
   
   create_test_hash(pool, tdata);



Mime
View raw message