diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-02 12:53:57 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-02 12:53:57 -0700 |
commit | 13ee1943ebd8303b38ae9f2549af0cdd16bcade4 (patch) | |
tree | aa5ecb74c0b62704bb5423e5c398deaf33d7ce83 /dive.c | |
parent | 58fa613236d59a396ab83b4549484d16fcb47579 (diff) | |
download | subsurface-13ee1943ebd8303b38ae9f2549af0cdd16bcade4.tar.gz |
Fix warning about ambiguous if / else nesting
Should have cleaned that up when committing the code.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |