diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-07-01 18:38:39 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-07-01 18:38:39 +0000 |
| commit | 1a9386290b36ea4d500092f7f5b6a08367ec4886 (patch) | |
| tree | 976a443691f900bf089046c1b17b9a35bf0fe886 /Src/parse.c | |
| parent | 25259: improve getquery() handling of unhandled characters (diff) | |
| download | zsh-1a9386290b36ea4d500092f7f5b6a08367ec4886.tar zsh-1a9386290b36ea4d500092f7f5b6a08367ec4886.tar.gz zsh-1a9386290b36ea4d500092f7f5b6a08367ec4886.tar.bz2 zsh-1a9386290b36ea4d500092f7f5b6a08367ec4886.tar.lz zsh-1a9386290b36ea4d500092f7f5b6a08367ec4886.tar.xz zsh-1a9386290b36ea4d500092f7f5b6a08367ec4886.tar.zst zsh-1a9386290b36ea4d500092f7f5b6a08367ec4886.zip | |
25262: suspicious error checking in braceless function definition
Diffstat (limited to 'Src/parse.c')
| -rw-r--r-- | Src/parse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/parse.c b/Src/parse.c index 54543a642..beb88b451 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -1687,8 +1687,7 @@ par_simple(int *complex, int nr) sl = ecadd(0); pl = ecadd(WCB_PIPE(WC_PIPE_END, 0)); - par_cmd(&c); - if (!c) { + if (!par_cmd(&c)) { cmdpop(); YYERROR(oecused); } |
