]> granicus.if.org Git - python/commitdiff
#include <netconfig.h> seems not needed and is harmful on NeXT, so drop it.
authorGuido van Rossum <guido@python.org>
Fri, 30 Aug 1996 20:39:43 +0000 (20:39 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 30 Aug 1996 20:39:43 +0000 (20:39 +0000)
Add proper initialization of rtn = NULL in unpack_double.

Modules/_xdrmodule.c

index 42e545f17a11a401fedbcbc3b76518e5e5004e4c..d2c94536a2980027d5dccf4a6f4c0cb76058fa7a 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "Python.h"
 
-#include <netconfig.h>
 #include <rpc/rpc.h>
 #include <rpc/xdr.h>
 
@@ -131,7 +130,7 @@ unpack_double(self, args)
     double value;
     char* string;
     int strlen;
-    PyObject* rtn;
+    PyObject* rtn = NULL;
 
     if (!PyArg_ParseTuple(args, "s#", &string, &strlen))
         return NULL;