Get location from dive site for git commit message

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-12 22:54:39 -08:00
parent b2f0d21d43
commit ae49a8a4f7

View file

@ -960,7 +960,7 @@ static void create_commit_message(struct membuffer *msg)
if (dive) {
dive_trip_t *trip = dive->divetrip;
const char *location = dive->location ? : "no location";
const char *location = get_dive_location(dive) ? : "no location";
struct divecomputer *dc = &dive->dc;
const char *sep = "\n";