Commit 7af1505c authored by Jim Fulton's avatar Jim Fulton

Added missing return in unlikely Per__getstate__ error handling code.

parent 564cc7a0
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file. attributions are listed in the accompanying credits file.
****************************************************************************/ ****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.34 1999/10/07 16:57:21 jim Exp $"; static char *what_string = "$Id: cPersistence.c,v 1.35 1999/10/18 10:36:50 jim Exp $";
#include <string.h> #include <string.h>
#include "cPersistence.h" #include "cPersistence.h"
...@@ -370,6 +370,7 @@ Per__getstate__(self,args) ...@@ -370,6 +370,7 @@ Per__getstate__(self,args)
err: err:
Py_DECREF(__dict__); Py_DECREF(__dict__);
Py_XDECREF(d); Py_XDECREF(d);
return NULL;
} }
static PyObject * static PyObject *
...@@ -718,7 +719,7 @@ void ...@@ -718,7 +719,7 @@ void
initcPersistence() initcPersistence()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.34 $"; char *rev="$Revision: 1.35 $";
TimeStamp=PyString_FromString("TimeStamp"); TimeStamp=PyString_FromString("TimeStamp");
if (! TimeStamp) return; if (! TimeStamp) return;
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file. attributions are listed in the accompanying credits file.
****************************************************************************/ ****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.34 1999/10/07 16:57:21 jim Exp $"; static char *what_string = "$Id: cPersistence.c,v 1.35 1999/10/18 10:36:50 jim Exp $";
#include <string.h> #include <string.h>
#include "cPersistence.h" #include "cPersistence.h"
...@@ -370,6 +370,7 @@ Per__getstate__(self,args) ...@@ -370,6 +370,7 @@ Per__getstate__(self,args)
err: err:
Py_DECREF(__dict__); Py_DECREF(__dict__);
Py_XDECREF(d); Py_XDECREF(d);
return NULL;
} }
static PyObject * static PyObject *
...@@ -718,7 +719,7 @@ void ...@@ -718,7 +719,7 @@ void
initcPersistence() initcPersistence()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.34 $"; char *rev="$Revision: 1.35 $";
TimeStamp=PyString_FromString("TimeStamp"); TimeStamp=PyString_FromString("TimeStamp");
if (! TimeStamp) return; if (! TimeStamp) return;
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file. attributions are listed in the accompanying credits file.
****************************************************************************/ ****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.34 1999/10/07 16:57:21 jim Exp $"; static char *what_string = "$Id: cPersistence.c,v 1.35 1999/10/18 10:36:50 jim Exp $";
#include <string.h> #include <string.h>
#include "cPersistence.h" #include "cPersistence.h"
...@@ -370,6 +370,7 @@ Per__getstate__(self,args) ...@@ -370,6 +370,7 @@ Per__getstate__(self,args)
err: err:
Py_DECREF(__dict__); Py_DECREF(__dict__);
Py_XDECREF(d); Py_XDECREF(d);
return NULL;
} }
static PyObject * static PyObject *
...@@ -718,7 +719,7 @@ void ...@@ -718,7 +719,7 @@ void
initcPersistence() initcPersistence()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.34 $"; char *rev="$Revision: 1.35 $";
TimeStamp=PyString_FromString("TimeStamp"); TimeStamp=PyString_FromString("TimeStamp");
if (! TimeStamp) return; if (! TimeStamp) return;
......
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