diff --git a/lib/lib.c b/lib/lib.c index 81c89650c..332a0d015 100644 --- a/lib/lib.c +++ b/lib/lib.c @@ -931,7 +931,7 @@ void sigatexit(void *handler) // Output a nicely formatted table of all the signals. void list_signals(void) { - int i = 0, count = 0; + int i = 1, count = 0; unsigned cols = 80; char *name; diff --git a/lib/portability.c b/lib/portability.c index f97af60e5..c95a75268 100644 --- a/lib/portability.c +++ b/lib/portability.c @@ -422,6 +422,7 @@ int posix_fallocate(int fd, off_t offset, off_t length) #define SIGNIFY(x) {SIG##x, #x} static const struct signame signames[] = { + {0, "0"}, // POSIX SIGNIFY(ABRT), SIGNIFY(ALRM), SIGNIFY(BUS), SIGNIFY(FPE), SIGNIFY(HUP), SIGNIFY(ILL), SIGNIFY(INT), SIGNIFY(KILL),