mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
seac import: report database error
Also free the error message. Annoying C interface - found by Coverity. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e305546046
commit
ef9ae5f6d6
1 changed files with 2 additions and 1 deletions
|
@ -290,7 +290,8 @@ int parse_seac_buffer(sqlite3 *handle, const char *url, const char *, int, struc
|
||||||
retval = sqlite3_exec(handle, get_dives, &seac_dive, &state, &err);
|
retval = sqlite3_exec(handle, get_dives, &seac_dive, &state, &err);
|
||||||
|
|
||||||
if (retval != SQLITE_OK) {
|
if (retval != SQLITE_OK) {
|
||||||
report_info("Database query failed '%s'.", url);
|
report_info("Database query failed '%s': %s.", url, err);
|
||||||
|
sqlite3_free(err);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue