summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/divelist.c')
-rw-r--r--core/divelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/divelist.c b/core/divelist.c
index 5549825dc..7c6259a6b 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -1177,11 +1177,11 @@ void filter_dive(struct dive *d, bool shown)
* (or the second one if the first one is empty */
void combine_trips(struct dive_trip *trip_a, struct dive_trip *trip_b)
{
- if (same_string(trip_a->location, "") && trip_b->location) {
+ if (empty_string(trip_a->location) && trip_b->location) {
free(trip_a->location);
trip_a->location = strdup(trip_b->location);
}
- if (same_string(trip_a->notes, "") && trip_b->notes) {
+ if (empty_string(trip_a->notes) && trip_b->notes) {
free(trip_a->notes);
trip_a->notes = strdup(trip_b->notes);
}