diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -24,6 +24,8 @@ int main(int argc, char **argv) if (argc == 2) filename = argv[1]; tablist_t *list = readdb(filename); + if (list == NULL) + exit(1); char *cmd = calloc(1024, sizeof(char)); while (fgets(cmd, 1024, stdin) != NULL) { |