From 63b01c2da11a68a29b8fa5caff14ffc6db381030 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 17 Sep 2002 19:25:28 +0000 Subject: [PATCH] stupid bug found by mattam@netcourrier.com Daniel * python/libxml_wrap.h: stupid bug found by mattam@netcourrier.com Daniel --- ChangeLog | 4 ++++ python/libxml_wrap.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 94e893cd..5fc261a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Sep 17 21:22:25 CEST 2002 Daniel Veillard + + * python/libxml_wrap.h: stupid bug found by mattam@netcourrier.com + Tue Sep 17 19:58:26 CEST 2002 Daniel Veillard * xmlIO.c: small portability glitch fixed. diff --git a/python/libxml_wrap.h b/python/libxml_wrap.h index 7202c320..752c7f71 100644 --- a/python/libxml_wrap.h +++ b/python/libxml_wrap.h @@ -81,7 +81,7 @@ typedef struct { /* FILE * have their own internal representation */ #define PyFile_Get(v) (((v) == Py_None) ? NULL : \ - (PyFile_Check(v) ? NULL : (PyFile_AsFile(v)))) + (PyFile_Check(v) ? (PyFile_AsFile(v)) : NULL)) PyObject * libxml_intWrap(int val);