[svn-commits] r176 - drivers/python/main/dbi

clach04 at ingres.com clach04 at ingres.com
Fri Aug 1 09:00:09 PDT 2008


Author: clach04
Date: 2008-08-01 09:00:09 -0700 (Fri, 01 Aug 2008)
New Revision: 176

Modified:
   drivers/python/main/dbi/iidbiutil.c
Log:
Trac Ticket #160 - Disabling trace now works without error.

dbi_trace() was returning an uninitialized variable causing ingresdbi.IOError when Tracing was set to off "(0, None)".

Modified: drivers/python/main/dbi/iidbiutil.c
===================================================================
--- drivers/python/main/dbi/iidbiutil.c	2008-07-28 23:30:47 UTC (rev 175)
+++ drivers/python/main/dbi/iidbiutil.c	2008-08-01 16:00:09 UTC (rev 176)
@@ -61,6 +61,10 @@
 **          Multiple traces running to standard error causes a problem.
 **          When tracing to standard error don't close the descriptor.
 **          Print fold marker for very first instance of trace start.
+**      30-Jul-2008 (clach04)
+**          Trac Ticket #160 - "No such file or directory" on disable trace
+**          dbi_trace() was returning an uninitialized variable causing
+**          crashes when Tracing was set to off "(0, None)".
 **/
 
 /*{
@@ -93,13 +97,15 @@
 **      16-Jul-2004 (raymond.fan at ca.com)
 **          Save the filename of the file that is opened.
 **          Keep a reference of open requests.
+**      30-Jul-2008 (clach04)
+**          Ensure ret_val is initialized before return.
 }*/
 short int
 dbi_trace( int dbglevel, char* trcfile )
 {
     FILE* fd;
     time_t ltime;
-    short int ret_val;
+    short int ret_val=TRUE;
 
     time( &ltime );
 




More information about the svn-commits mailing list