summaryrefslogtreecommitdiff
path: root/xmlcatalog.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-12-12 14:56:03 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-12-12 14:56:03 +0000
commitefe6c74dfb592c2f4ef15f00b0c0123e68e74b52 (patch)
tree28b648f65ea1002a91a48508e7342cbe932d8b8e /xmlcatalog.c
parent38c53ecb6063f06b1693212a8fac69a50221e4b1 (diff)
downloadlibxml2-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.c4
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");