diff options
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c index 227b95296..dc13fa280 100644 --- a/save-xml.c +++ b/save-xml.c @@ -190,7 +190,7 @@ static void show_location(struct membuffer *b, struct dive *dive) int len = sprintf(buffer, " <location "); len += format_location(buffer + len, latitude, longitude); - if (!dive->location) { + if (!dive->location || dive->location[0] == '\0') { memcpy(buffer + len, "/>\n\0", 5); put_string(b, buffer); return; |