Browse Source

Return list end as intended in stringlist_get_tail (oops, thanks Roker for the catch

doxygen_doc
Krista Bennett 5 months ago
parent
commit
ab3a47cb4d
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/stringlist.c

+ 1
- 2
src/stringlist.c View File

@ -403,9 +403,8 @@ stringlist_t* stringlist_get_tail(stringlist_t* sl) {
if (!sl || !sl->value) // empty string is a value, yes?
return NULL;
stringlist_t* retval = sl;
while (sl->next) {
sl = sl->next;
}
return retval;
return sl;
}

Loading…
Cancel
Save