Changeset 329a6bc0 in subsurface


Ignore:
Timestamp:
Apr 21, 2017, 6:52:13 AM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
75007aa
Parents:
76975ed
git-author:
Salvador Cuñat <salvador.cunat@…> (04/12/17 12:46:57)
git-committer:
Dirk Hohndel <dirk@…> (04/21/17 06:52:13)
Message:

smtk-import: Abort bookmark parsing if table doesn't open

Do not just report the failure but abort parsing or we will get a crash

Signed-off-by: Salvador Cuñat <salvador.cunat@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smtk-import/smartrak.c

    re4086dc r329a6bc0  
    679679
    680680        table = smtk_open_table(mdb, "Marker", col, bound_values);
    681         if (!table)
     681        if (!table) {
    682682                report_error("[smtk-import] Error - Couldn't open table 'Marker', dive %d", d->number);
     683                return;
     684        }
    683685        while (mdb_fetch_row(table)) {
    684686                if (same_string(col[0]->bind_ptr, dive_idx)) {
Note: See TracChangeset for help on using the changeset viewer.