From a6981898435ad1ea9bcbb4540c7966048b755470 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 20 Oct 2001 17:48:23 +0000 Subject: Fix segfault in checkrmall(). --- Src/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src') diff --git a/Src/utils.c b/Src/utils.c index 539b383ee..d7d277b55 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -1406,6 +1406,8 @@ read_poll(int fd, int *readchar, int polltty) int checkrmall(char *s) { + if (!shout) + return 1; fprintf(shout, "zsh: sure you want to delete all the files in "); if (*s != '/') { nicezputs(pwd[1] ? unmeta(pwd) : "", shout); -- cgit 1.4.1