Skip to content

Commit

Permalink
skip checking sqlite3_gufivt_init return value in gufi_sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
calccrypto committed Jan 31, 2025
1 parent 066397a commit ab051d6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/gufi_sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,8 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}

char *err = NULL;

/* this calls addqueryfuncs */
if (sqlite3_gufivt_init(db, &err, NULL) != SQLITE_OK) {
fprintf(stderr, "Error: Could not initialize virtual tables \"%s\"\n", err);
sqlite3_free(err);
input_fini(&in);
return EXIT_FAILURE;
}
sqlite3_gufivt_init(db, NULL, NULL);

/* no buffering */
struct OutputBuffer ob;
Expand All @@ -121,6 +114,7 @@ int main(int argc, char *argv[]) {
};

/* if using in-memory db or no SQL statements following db path, read from stdin */
char *err = NULL;
if (args_left < 2) {
char *line = NULL;
size_t len = 0;
Expand Down

0 comments on commit ab051d6

Please sign in to comment.