url-mode: early exit when assigning key combos to empty list

This commit is contained in:
Daniel Eklöf 2021-02-07 14:29:34 +01:00
parent fec19f1503
commit 9066ba87df
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -412,6 +412,9 @@ void
urls_assign_key_combos(url_list_t *urls)
{
const size_t count = tll_length(*urls);
if (count == 0)
return;
wchar_t *combos[count];
generate_key_combos(count, combos);