aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-12 23:16:47 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-12 13:58:16 -0700
commitb4d5f6fd5397bde406300218e4f253e3662a19fa (patch)
tree6ef12e7791e45fc158400a7ea7fb5f5f17d4f8b2
parent212cc575bf140d4cfbb8e7fa766ed4b2ff865bcc (diff)
downloadsubsurface-b4d5f6fd5397bde406300218e4f253e3662a19fa.tar.gz
Divinglog import: hook up processing of .sql files
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index e6b0a3f94..085c33379 100644
--- a/file.c
+++ b/file.c
@@ -448,7 +448,7 @@ int parse_file(const char *filename)
}
fmt = strrchr(filename, '.');
- if (fmt && (!strcasecmp(fmt + 1, "DB") || !strcasecmp(fmt + 1, "BAK"))) {
+ if (fmt && (!strcasecmp(fmt + 1, "DB") || !strcasecmp(fmt + 1, "BAK") || !strcasecmp(fmt + 1, "SQL"))) {
if (!try_to_open_db(filename, &mem)) {
free(mem.buffer);
return 0;