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:
parent
58fa613236
commit
13ee1943eb
3
dive.c
3
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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user