You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by da...@apache.org on 2007/08/04 02:02:47 UTC

svn commit: r562623 - /apr/apr-util/trunk/dbm/apr_dbm_sdbm.c

Author: davi
Date: Fri Aug  3 17:02:47 2007
New Revision: 562623

URL: http://svn.apache.org/viewvc?view=rev&rev=562623
Log:
The last two arguments to APR_DBM_FETCH were inverted, causing the datum of
the key to be used as the return datum and vice-versa. Found while investigating
PR 43025.

Modified:
    apr/apr-util/trunk/dbm/apr_dbm_sdbm.c

Modified: apr/apr-util/trunk/dbm/apr_dbm_sdbm.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbm/apr_dbm_sdbm.c?view=diff&rev=562623&r1=562622&r2=562623
==============================================================================
--- apr/apr-util/trunk/dbm/apr_dbm_sdbm.c (original)
+++ apr/apr-util/trunk/dbm/apr_dbm_sdbm.c Fri Aug  3 17:02:47 2007
@@ -140,7 +140,7 @@
     result_datum_t rd;
 
     CONVERT_DATUM(ckey, &key);
-    rv = APR_DBM_FETCH(dbm->file, ckey, rd);
+    rv = APR_DBM_FETCH(dbm->file, rd, ckey);
     RETURN_DATUM(pvalue, rd);
 
     REGISTER_CLEANUP(dbm, pvalue);