apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdono...@apache.org
Subject svn commit: r1080404 - /apr/apr/trunk/dbd/apr_dbd_odbc.c
Date Fri, 11 Mar 2011 00:18:18 GMT
Author: tdonovan
Date: Fri Mar 11 00:18:17 2011
New Revision: 1080404

URL: http://svn.apache.org/viewvc?rev=1080404&view=rev
Log:
2nd try - indenting fix per change 1078507 - style fix

Modified:
    apr/apr/trunk/dbd/apr_dbd_odbc.c

Modified: apr/apr/trunk/dbd/apr_dbd_odbc.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/dbd/apr_dbd_odbc.c?rev=1080404&r1=1080403&r2=1080404&view=diff
==============================================================================
--- apr/apr/trunk/dbd/apr_dbd_odbc.c (original)
+++ apr/apr/trunk/dbd/apr_dbd_odbc.c Fri Mar 11 00:18:17 2011
@@ -1324,12 +1324,10 @@ static int odbc_get_row(apr_pool_t *pool
         if (res->colstate[c] != COL_BOUND) {
             res->colstate[c] = COL_AVAIL;
         }
-
-    /* some drivers do not null-term zero-len CHAR data */
-    if (res->colptrs[c])
-        *(char *)res->colptrs[c] = 0; 
+        /* some drivers do not null-term zero-len CHAR data */
+        if (res->colptrs[c])
+            *(char *)res->colptrs[c] = 0; 
     }
-
     if (res->random && (rownum > 0)) {
         fetchtype = "SQLFetchScroll";
         rc = SQLFetchScroll(res->stmt, SQL_FETCH_ABSOLUTE, rownum);



Mime
View raw message