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

doxygen_doc
Krista Bennett 2 years ago
parent 9033abdf83
commit ab3a47cb4d

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