Author: timbo
Date: Mon Jan  2 07:16:55 2012
New Revision: 15062

Modified:
   dbi/trunk/Driver_xst.h

Log:
fixup previous commit

Modified: dbi/trunk/Driver_xst.h
==============================================================================
--- dbi/trunk/Driver_xst.h      (original)
+++ dbi/trunk/Driver_xst.h      Mon Jan  2 07:16:55 2012
@@ -62,10 +62,10 @@
     ) {
        char errmsg[99];
         /* clear any previous ParamValues before error is generated */
-        SV **svp = hv_fetch((HV*)DBIc_MY_H(imp_sth),"ParamValues",11,FALSE));
+        SV **svp = hv_fetch((HV*)DBIc_MY_H(imp_sth),"ParamValues",11,FALSE);
         if (svp && SvROK(*svp) && SvTYPE(SvRV(*svp)) == SVt_PVHV) {
             HV *hv = (HV*)SvRV(*svp);
-            hv_clear(*svp);
+            hv_clear(hv);
         }
        sprintf(errmsg,"called with %d bind variables when %d are needed",
                (int)items-1, DBIc_NUM_PARAMS(imp_sth));

Reply via email to