Browse Source

* imdb-query.c : assert

master
Alex 'AdUser' Z 10 years ago
parent
commit
b6a2f88ce5
  1. 5
      src/imdb-query.c

5
src/imdb-query.c

@ -217,6 +217,11 @@ int main(int argc, char **argv)
} }
} }
if (db_path == NULL) {
puts("database path not set");
usage(EXIT_FAILURE);
}
if (imdb_open(&db, db_path, 0) == -1) { if (imdb_open(&db, db_path, 0) == -1) {
printf("database open: %s\n", db.errstr); printf("database open: %s\n", db.errstr);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);

Loading…
Cancel
Save