mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Divinglog import: hook up processing of .sql files
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
212cc575bf
commit
b4d5f6fd53
1 changed files with 1 additions and 1 deletions
2
file.c
2
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue