We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db7959 commit bbfba0dCopy full SHA for bbfba0d
.github/workflows/linux.yml
@@ -4,7 +4,7 @@ on: [push, pull_request]
4
5
jobs:
6
ci:
7
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
8
9
strategy:
10
matrix:
src/keys.c
@@ -111,7 +111,8 @@ del_keybinding(const struct key key[], size_t keys)
111
table->size--;
112
for (; j < table->size; j++)
113
table->data[j] = table->data[j + 1];
114
- table->data = realloc(table->data, table->size * sizeof(*table->data));
+ if (table->size)
115
+ table->data = realloc(table->data, table->size * sizeof(*table->data));
116
}
117
118
0 commit comments