about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-04-27 18:33:16 -0400
committerJune McEnroe <june@causal.agency>2021-04-27 18:33:34 -0400
commita3c38707020b44384c518ce364033a890233b8ee (patch)
treeedc62b214f24903248aa2f549ecdea9b0df809db
parentAdd missing comma in manual (diff)
downloadlitterbox-a3c38707020b44384c518ce364033a890233b8ee.tar.gz
litterbox-a3c38707020b44384c518ce364033a890233b8ee.zip
Use QueryCap for select
No idea why it was like this.
-rw-r--r--scoop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scoop.c b/scoop.c
index 8c113d5..95fb794 100644
--- a/scoop.c
+++ b/scoop.c
@@ -283,7 +283,9 @@ static void regexp(sqlite3_context *ctx, int n, sqlite3_value *args[]) {
 	sqlite3_result_int(ctx, !error);
 }
 
-static char select[4096] = SQL(
+enum { QueryCap = 4096 };
+
+static char select[QueryCap] = SQL(
 	SELECT
 		events.event,
 		contexts.network,
@@ -306,8 +308,6 @@ static char select[4096] = SQL(
 		events.target,
 );
 
-enum { QueryCap = 4096 };
-
 static char from[QueryCap] = SQL(
 	FROM events
 	JOIN contexts USING (context)