From: Martin Gysel <[email protected]> in case the dive has no divetrip, don't try to access its location
Signed-off-by: Martin Gysel <[email protected]> --- save-git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save-git.c b/save-git.c index 3fd8807..2757757 100644 --- a/save-git.c +++ b/save-git.c @@ -850,7 +850,7 @@ static void create_commit_message(struct membuffer *msg) nr = dive->number; put_format(msg, "dive %d: %s", nr, location); - if (trip->location && *trip->location && strcmp(trip->location, location)) + if (trip && trip->location && *trip->location && strcmp(trip->location, location)) put_format(msg, " (%s)", trip->location); put_format(msg, "\n\n"); } -- 1.9.3 _______________________________________________ subsurface mailing list [email protected] http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
