summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--unscoop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/unscoop.c b/unscoop.c
index 782ce7f..6d757a8 100644
--- a/unscoop.c
+++ b/unscoop.c
@@ -201,6 +201,8 @@ static void matchLine(
 		int error = regexec(&regex[i], line, ParamCap, match, 0);
 		if (error) continue;
 
+		sqlite3_reset(insertName);
+		sqlite3_reset(insertEvent);
 		sqlite3_clear_bindings(insertName);
 		sqlite3_clear_bindings(insertEvent);
 
@@ -219,8 +221,7 @@ static void matchLine(
 
 		dbStep(insertName);
 		dbStep(insertEvent);
-		sqlite3_reset(insertName);
-		sqlite3_reset(insertEvent);
+		break;
 	}
 }
 
07Detect .mk files as makeJune McEnroe 2019-02-07Add make syntax to hiJune McEnroe 2019-02-07Add IRC output to hiJune McEnroe 2019-02-07Improve C syntax accuracy and add Format classJune McEnroe 2019-02-07Factor out hi checkJune McEnroe Fix subexpression bounds check and compile pattends. 2019-02-07Add Escape class to hiJune McEnroe 2019-02-07Add Todo class and parent syntax constraintJune McEnroe