Skip to content

Commit

Permalink
Check for missing arg to pg_sqlite info -db
Browse files Browse the repository at this point in the history
  • Loading branch information
resuna committed Mar 19, 2018
1 parent ebc6cf0 commit 9f33b49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generic/pgtclSqlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,8 @@ Pg_sqlite(ClientData clientdata, Tcl_Interp *interp, int objc, Tcl_Obj *CONST ob
}

if (strcmp(optName, "-db") == 0) {
if(optIndex >= objc)
goto info_wrong_num_args;
dbName = Tcl_GetString(objv[optIndex]);
optIndex++;
} else if (strcmp(optName, "-busy") == 0) {
Expand Down

0 comments on commit 9f33b49

Please sign in to comment.