Skip to content
This repository was archived by the owner on Feb 9, 2020. It is now read-only.

Commit ca4a9a2

Browse files
rogersmxenith
authored andcommitted
Move va_end closer to va_start (#19)
1 parent a3e7c68 commit ca4a9a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/db.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ bool db_execute(const char *sql, ...)
4545

4646
stmt = db_prepare_internal(sql, vars);
4747

48+
va_end(vars);
49+
4850
if ( stmt == NULL ) {
4951
return FALSE;
5052
}
5153

52-
va_end(vars);
5354

5455
if ( db_step(stmt) != SQLITE_DONE ) {
5556
bug("Failed to step through statement: %s", sqlite3_errmsg(db));

0 commit comments

Comments
 (0)