]> granicus.if.org Git - python/commitdiff
Initialize swappedinput to silence the compiler warning about
authorWalter Dörwald <walter@livinglogic.de>
Fri, 31 Jan 2003 16:26:50 +0000 (16:26 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 31 Jan 2003 16:26:50 +0000 (16:26 +0000)
uninitialized variables.

Modules/_iconv_codec.c

index 424812760906d2b013e83643ef44f3c4528d8752..d61adbcab47f77a17bab8fa6139c87432e96610f 100644 (file)
@@ -92,7 +92,7 @@ iconvcodec_encode(iconvcodecObject *self, PyObject *args, PyObject *kwargs)
     size_t               inplen, inplen_total, outlen, outlen_total, estep;
     PyObject            *outputobj = NULL, *errorcb = NULL,
                         *exceptionobj = NULL;
-    Py_UNICODE          *swappedinput;
+    Py_UNICODE          *swappedinput = NULL;
     int                  swapi;
 
     if (!PyArg_ParseTupleAndKeywords(args, kwargs, "u#|s:encode",