summaryrefslogtreecommitdiff
path: root/testAutomata.c
diff options
context:
space:
mode:
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;