Fix warning about ambiguous if / else nesting

Should have cleaned that up when committing the code.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-02 12:53:57 -07:00
parent 58fa613236
commit 13ee1943eb

3
dive.c
View file

@ -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;
}