]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed a huge bug in the C version of the unicode processor
authorGaëtan de Menten <gdementen@gmail.com>
Sun, 14 Feb 2010 20:55:06 +0000 (20:55 +0000)
committerGaëtan de Menten <gdementen@gmail.com>
Sun, 14 Feb 2010 20:55:06 +0000 (20:55 +0000)
lib/sqlalchemy/cextension/processors.c

index 23b7be4f2f9dceb63342ae60840ab3ee14cac29e..d2d39809046c559121f8f9bb545bd22160f72127 100644 (file)
@@ -155,7 +155,7 @@ static int
 UnicodeResultProcessor_init(UnicodeResultProcessor *self, PyObject *args,
                             PyObject *kwds)
 {
-    PyObject *encoding, *errors;
+    PyObject *encoding, *errors = NULL;
     static char *kwlist[] = {"encoding", "errors", NULL};
 
     if (!PyArg_ParseTupleAndKeywords(args, kwds, "S|S:init", kwlist,