mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
#include <netconfig.h> seems not needed and is harmful on NeXT, so drop it.
Add proper initialization of rtn = NULL in unpack_double.
This commit is contained in:
parent
2b3ac69a3a
commit
6c0b234006
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue