diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2001-10-20 17:48:23 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-10-20 17:48:23 +0000 |
| commit | a6981898435ad1ea9bcbb4540c7966048b755470 (patch) | |
| tree | 2cb6edf89e4fe9ac9c6eae299d25811f8dedfeaa | |
| parent | fix: make _describe handle (...) arguments correctly; use _file_descriptors a... (diff) | |
| download | zsh-a6981898435ad1ea9bcbb4540c7966048b755470.tar zsh-a6981898435ad1ea9bcbb4540c7966048b755470.tar.gz zsh-a6981898435ad1ea9bcbb4540c7966048b755470.tar.bz2 zsh-a6981898435ad1ea9bcbb4540c7966048b755470.tar.lz zsh-a6981898435ad1ea9bcbb4540c7966048b755470.tar.xz zsh-a6981898435ad1ea9bcbb4540c7966048b755470.tar.zst zsh-a6981898435ad1ea9bcbb4540c7966048b755470.zip | |
Fix segfault in checkrmall().
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/utils.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2001-10-20 Bart Schaefer <schaefer@zsh.org> + + * Adapted from Stefan Dalibor, 16043: Src/utils.c: checkrmall() + must not print to shout when shout's not valid. + 2001-10-19 Sven Wischnowsky <wischnow@zsh.org> * 16085: Completion/Base/Utility/_describe, 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); |
