From 13ee1943ebd8303b38ae9f2549af0cdd16bcade4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 2 Nov 2013 12:53:57 -0700 Subject: Fix warning about ambiguous if / else nesting Should have cleaned that up when committing the code. Signed-off-by: Dirk Hohndel --- dive.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2