[Python-checkins] python/dist/src/Modules syslogmodule.c, 2.19,
2.19.18.1
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Fri Dec 17 15:44:48 CET 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19114/Modules
Modified Files:
Tag: release24-maint
syslogmodule.c
Log Message:
Backport fixes for bugs #1086555 and #1085744.
Index: syslogmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/syslogmodule.c,v
retrieving revision 2.19
retrieving revision 2.19.18.1
diff -u -d -r2.19 -r2.19.18.1
--- syslogmodule.c 2 Aug 2002 02:27:13 -0000 2.19
+++ syslogmodule.c 17 Dec 2004 14:44:45 -0000 2.19.18.1
@@ -57,17 +57,18 @@
{
long logopt = 0;
long facility = LOG_USER;
+ PyObject *new_S_ident_o;
-
- Py_XDECREF(S_ident_o);
if (!PyArg_ParseTuple(args,
"S|ll;ident string [, logoption [, facility]]",
- &S_ident_o, &logopt, &facility))
+ &new_S_ident_o, &logopt, &facility))
return NULL;
/* This is needed because openlog() does NOT make a copy
* and syslog() later uses it.. cannot trash it.
*/
+ Py_XDECREF(S_ident_o);
+ S_ident_o = new_S_ident_o;
Py_INCREF(S_ident_o);
openlog(PyString_AsString(S_ident_o), logopt, facility);
More information about the Python-checkins
mailing list