diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 13:29:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 15:33:35 +0000 |
| commit | 9066ba87df574a59c4b572bbbb2f1c7962cab1f9 (patch) | |
| tree | 53320ea2c4456dc3666e6e8389197089aaf77385 | |
| parent | changelog: URL mode (diff) | |
url-mode: early exit when assigning key combos to empty list
| -rw-r--r-- | url-mode.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |
