Fix stringlist_add_unique sequoia
authorNeal H. Walfield <neal@pep.foundation>
Tue, 04 Dec 2018 19:22:50 +0100
branchsequoia
changeset 3188cbc9da42a49e
parent 3187 9376fbf0c026
child 3189 3f8d3904ba8a
Fix stringlist_add_unique
src/stringlist.c
     1.1 --- a/src/stringlist.c	Sat Dec 15 17:02:43 2018 +0100
     1.2 +++ b/src/stringlist.c	Tue Dec 04 19:22:50 2018 +0100
     1.3 @@ -145,7 +145,9 @@
     1.4              found = true;
     1.5          list_curr = list_curr->next;
     1.6      }
     1.7 -     
     1.8 +    if(strcmp(list_curr->value,value)==0)
     1.9 +        found = true;
    1.10 +
    1.11      if (!found) {
    1.12          list_curr->next = new_stringlist(value);
    1.13