From efe6c74dfb592c2f4ef15f00b0c0123e68e74b52 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 12 Dec 2003 14:56:03 +0000 Subject: applied patch from Stefan Kost Daniel * xmlcatalog.c: applied patch from Stefan Kost Daniel --- xmlcatalog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmlcatalog.c') diff --git a/xmlcatalog.c b/xmlcatalog.c index 6e614ced..f974d3ab 100644 --- a/xmlcatalog.c +++ b/xmlcatalog.c @@ -38,7 +38,7 @@ static int add = 0; static int del = 0; static int convert = 0; static int verbose = 0; -static char *filename; +static char *filename = NULL; #ifndef XML_SGML_DEFAULT_CATALOG @@ -556,7 +556,7 @@ int main(int argc, char **argv) { } } if ((!sgml) && ((add) || (del) || (create) || (convert))) { - if (noout) { + if (noout && filename && *filename) { FILE *out; out = fopen(filename, "w"); -- cgit v1.2.3