summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dive.c b/dive.c
index d2cda168d..4bf5f2742 100644
--- a/dive.c
+++ b/dive.c
@@ -1846,11 +1846,12 @@ struct divetag *taglist_get_tag(struct tag_entry *tag_list, const char *tag)
struct tag_entry *tmp;
tmp = tag_list->next;
while(tmp != NULL) {
- if (tmp->tag != NULL)
+ if (tmp->tag != NULL) {
if (strcmp(tmp->tag->name, tag) == 0)
return tmp->tag;
else
tmp = tmp->next;
+ }
}
return NULL;
}