Skip to content

Commit bbfba0d

Browse files
committed
Update Linux CI
1 parent 0db7959 commit bbfba0d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
ci:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
88

99
strategy:
1010
matrix:

src/keys.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ del_keybinding(const struct key key[], size_t keys)
111111
table->size--;
112112
for (; j < table->size; j++)
113113
table->data[j] = table->data[j + 1];
114-
table->data = realloc(table->data, table->size * sizeof(*table->data));
114+
if (table->size)
115+
table->data = realloc(table->data, table->size * sizeof(*table->data));
115116
}
116117
}
117118

0 commit comments

Comments
 (0)