fix: list function should skip over empty pools
This commit is contained in:
parent
af904e1119
commit
a0d7e03f2e
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-08-22 00:11+0300\n"
|
"POT-Creation-Date: 2024-08-22 02:54+0300\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -41,9 +41,14 @@ lm_pkg_t *lm_ctx_list_next(lm_ctx_list_t *list){
|
|||||||
return list->pkg;
|
return list->pkg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((list->pkg = list->pkg->next) && NULL == list->pkg){
|
if((list->pkg = list->pkg->next) == NULL){
|
||||||
if((list->pool = list->pool->next) != NULL)
|
next_pool:
|
||||||
list->pkg = list->pool->pkg;
|
if((list->pool = list->pool->next) == NULL)
|
||||||
|
return list->pkg;
|
||||||
|
|
||||||
|
if((list->pkg = list->pool->pkg) == NULL)
|
||||||
|
goto next_pool;
|
||||||
|
|
||||||
return list->pkg;
|
return list->pkg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user