subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r904956 - /subversion/trunk/build/transform_sql.py
Date Sun, 31 Jan 2010 02:49:19 GMT
Author: gstein
Date: Sun Jan 31 02:49:19 2010
New Revision: 904956

URL: http://svn.apache.org/viewvc?rev=904956&view=rev
Log:
svn_sqlite__open() expects a NULL-terminated array of statement strings,
however we were not actually storing a NULL into the array.

* build/transform_sql.py:
  (main): add one more array element containing a NULL

Modified:
    subversion/trunk/build/transform_sql.py

Modified: subversion/trunk/build/transform_sql.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/transform_sql.py?rev=904956&r1=904955&r2=904956&view=diff
==============================================================================
--- subversion/trunk/build/transform_sql.py (original)
+++ subversion/trunk/build/transform_sql.py Sun Jan 31 02:49:19 2010
@@ -119,7 +119,7 @@
     output.write('#define %s_DECLARE_STATEMENTS(varname) \\\n' % (var_name,)
                  + '  static const char * const varname[] = { \\\n'
                  + ', \\\n'.join('    STMT_%d' % (i,) for i in range(stmt_count))
-                 + ' \\\n  }\n')
+                 + ', \\\n    NULL \\\n  }\n')
 
 
 if __name__ == '__main__':



Mime
View raw message