summaryrefslogtreecommitdiff
path: root/testAutomata.c
diff options
context:
space:
mode:
authorMike Hommey <glandium@debian.org>2006-04-29 21:57:40 +0200
committerMike Hommey <glandium@debian.org>2006-04-29 21:57:40 +0200
commit07a67fa4bcc1b8bf2651ab41e5fc54a05059cf7e (patch)
tree7b377fd8e804a983cb2c57a43be1093ef179c5fd /testAutomata.c
parentc5d565931c4823dc8f62fffcb65aecfec516f7b9 (diff)
downloadlibxml2-upstream/2.6.24.dfsg.tar.gz
Load /tmp/libxml2-2.6.24 intoupstream/2.6.24.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'testAutomata.c')
-rw-r--r--testAutomata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testAutomata.c b/testAutomata.c
index a168a4b..a3969b1 100644
--- a/testAutomata.c
+++ b/testAutomata.c
@@ -53,6 +53,7 @@ testRegexpFile(const char *filename) {
xmlGenericError(xmlGenericErrorContext,
"Cannot create automata\n");
fclose(input);
+ return;
}
states[0] = xmlAutomataGetInitState(am);
if (states[0] == NULL) {
@@ -60,6 +61,7 @@ testRegexpFile(const char *filename) {
"Cannot get start state\n");
xmlFreeAutomata(am);
fclose(input);
+ return;
}
ret = 0;