Kaydet (Commit) 6c0b2340 authored tarafından Guido van Rossum's avatar Guido van Rossum

#include <netconfig.h> seems not needed and is harmful on NeXT, so drop it.

Add proper initialization of rtn = NULL in unpack_double.
üst 2b3ac69a
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "Python.h" #include "Python.h"
#include <netconfig.h>
#include <rpc/rpc.h> #include <rpc/rpc.h>
#include <rpc/xdr.h> #include <rpc/xdr.h>
...@@ -131,7 +130,7 @@ unpack_double(self, args) ...@@ -131,7 +130,7 @@ unpack_double(self, args)
double value; double value;
char* string; char* string;
int strlen; int strlen;
PyObject* rtn; PyObject* rtn = NULL;
if (!PyArg_ParseTuple(args, "s#", &string, &strlen)) if (!PyArg_ParseTuple(args, "s#", &string, &strlen))
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment