Skip to content

Commit 99e8dd3

Browse files
committed
Fix SEGV
`i` was not initialized, so just use 0 for argc == 1
1 parent 9b8ce44 commit 99e8dd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/sqlite3/aggregator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ rb_sqlite3_aggregator_step(sqlite3_context * ctx, int argc, sqlite3_value **argv
128128
}
129129

130130
if (argc == 1) {
131-
one_param = sqlite3val2rb(argv[i]);
131+
one_param = sqlite3val2rb(argv[0]);
132132
params = &one_param;
133133
}
134134
if (argc > 1) {

0 commit comments

Comments
 (0)