File unixODBC-2.2.12-ctracing.patch of Package unixODBC

--- odbcinstQ/CTracing.cpp
+++ odbcinstQ/CTracing.cpp
@@ -85,12 +85,12 @@
 
 	SQLGetPrivateProfileString( "ODBC", "Trace", "No", szTracing, sizeof(szTracing), "odbcinst.ini" );
 	if ( szTracing[0] == '1' || toupper( szTracing[0] ) == 'Y' 
-            || ( toupper( szTracing[0] ) == 'O' && toupper( szForce[0] ) == 'N' ))
+            || ( toupper( szTracing[0] ) == 'O' && toupper( szTracing[1] ) == 'N' ))
 		pTracing->setChecked( true );
 		
 	SQLGetPrivateProfileString( "ODBC", "ForceTrace", "No", szForce, sizeof(szForce), "odbcinst.ini" );
 	if ( szForce[0] == '1' || toupper( szForce[0] ) == 'Y' 
-            || ( toupper( szForce[0] ) == 'O' && toupper( szForce[0] ) == 'N' ))
+            || ( toupper( szForce[0] ) == 'O' && toupper( szForce[1] ) == 'N' ))
 		pForce->setChecked( true );
 		
 	SQLGetPrivateProfileString( "ODBC", "TraceFile", "/tmp/sql.log", szTracingFile, sizeof(szTracingFile)-1, "odbcinst.ini" );
@@ -98,7 +98,7 @@
 
 	SQLGetPrivateProfileString( "ODBC", "Pooling", "No", szPooling, sizeof(szPooling), "odbcinst.ini" );
 	if ( szPooling[0] == '1' || toupper( szPooling[0] ) == 'Y' 
-            || ( toupper( szPooling[0] ) == 'O'  && toupper( szForce[0] ) == 'N' ))
+            || ( toupper( szPooling[0] ) == 'O'  && toupper( szPooling[1] ) == 'N' ))
 		pPooling->setChecked( true );
 		
 	connect( pSetDefault, SIGNAL(clicked()), SLOT(setDefault()) );
openSUSE Build Service is sponsored by