diff options
author | Guido van Rossum <guido@python.org> | 1996-08-30 20:39:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-30 20:39:43 (GMT) |
commit | 6c0b2340063345a581922bd14ed272fa09c84f28 (patch) | |
tree | 45871c360b760325bb65291a2d7eb75ec04a23da /Modules | |
parent | 2b3ac69a3ab756c97c768eb425a5cd3cddd84bc1 (diff) | |
download | cpython-6c0b2340063345a581922bd14ed272fa09c84f28.zip cpython-6c0b2340063345a581922bd14ed272fa09c84f28.tar.gz cpython-6c0b2340063345a581922bd14ed272fa09c84f28.tar.bz2 |
#include <netconfig.h> seems not needed and is harmful on NeXT, so drop it.
Add proper initialization of rtn = NULL in unpack_double.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_xdrmodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_xdrmodule.c b/Modules/_xdrmodule.c index 42e545f..d2c9453 100644 --- a/Modules/_xdrmodule.c +++ b/Modules/_xdrmodule.c @@ -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; |