summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Riccardo Albertini <ssirowain@gmail.com>2011-09-20 14:44:45 +0200
committerGravatar Riccardo Albertini <ssirowain@gmail.com>2011-09-20 14:44:45 +0200
commit9a853c564c9bb47bc91e74d54d69443eeb4c3449 (patch)
tree2837c9805025f20c171e896f2dfbdc7c41479d25 /profile.c
parente3176882490a012097ae2d158eb8ea0cfb2b5804 (diff)
downloadsubsurface-9a853c564c9bb47bc91e74d54d69443eeb4c3449.tar.gz
Fix Segmentation fault when trying to print an empty plot.
When printing an empty plot, the function was missing nullability check for 'current_dive'. Now the print of an empty plot results with an empty blank page. A better solution could be making unsensitive the Print entry in the menu, until a plot is loaded. Signed-off-by: Riccardo Albertini <ssirowain@gmail.com>
Diffstat (limited to 'profile.c')
0 files changed, 0 insertions, 0 deletions