summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-26 16:57:12 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-26 19:44:01 -0800
commit720d4c65e854dceaedafd4d435a1832b75633d84 (patch)
tree8f20f55d5dd95222e22d739cfa8efff4da596135 /macos.c
parente726c9d65c7d1f1b8dbe238819b4d2847b8a058d (diff)
downloadsubsurface-720d4c65e854dceaedafd4d435a1832b75633d84.tar.gz
Fix crash when trip info changes across remember/restore tree state
Interesting crash. Importing a file gets us to a stage where we have a trip tree note with a date that doesn't exist as trip date. That's clearly bogus. And in import_files() we assume that all is still fine and try to restore the old expanded / selected state for the various trips. There is clearly a bigger issue here, this patch at least prevents the actual crash from happening by making sure the pointer is non-NULL before dereferencing it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'macos.c')
0 files changed, 0 insertions, 0 deletions