Proposed fix to make dynamic options and non-blocking stdin patch to work together

This commit is contained in:
bakkeby 2020-09-17 11:14:04 +02:00
parent 82c9f772f7
commit 088a083524

View File

@ -582,7 +582,9 @@ match(void)
#if HIGHPRIORITY_PATCH
lhpprefix = hpprefixend = NULL;
#endif // HIGHPRIORITY_PATCH
#if NON_BLOCKING_STDIN_PATCH
#if NON_BLOCKING_STDIN_PATCH && DYNAMIC_OPTIONS_PATCH
for (item = items; item && (!(dynamic && *dynamic) || item->text); item = (dynamic && *dynamic) ? item + 1 : item->next)
#elif NON_BLOCKING_STDIN_PATCH
for (item = items; item; item = item->next)
#else
for (item = items; item && item->text; item++)