diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-12-12 14:56:03 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-12-12 14:56:03 +0000 |
commit | efe6c74dfb592c2f4ef15f00b0c0123e68e74b52 (patch) | |
tree | 28b648f65ea1002a91a48508e7342cbe932d8b8e /xmlcatalog.c | |
parent | 38c53ecb6063f06b1693212a8fac69a50221e4b1 (diff) | |
download | libxml2-efe6c74dfb592c2f4ef15f00b0c0123e68e74b52.tar.gz |
applied patch from Stefan Kost Daniel
* xmlcatalog.c: applied patch from Stefan Kost
Daniel
Diffstat (limited to 'xmlcatalog.c')
-rw-r--r-- | xmlcatalog.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |