diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-15 23:09:23 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-15 23:09:23 +0200 |
| commit | 45d6bca5f0c405a3fc3e485d23a52e980627988f (patch) | |
| tree | f9e1334f6600fe1daf70d7a9085191c1b73150bd | |
| parent | d0e510b29af9a1d12a507f03f352b6d39adc0ace (diff) | |
| download | plan9front-45d6bca5f0c405a3fc3e485d23a52e980627988f.tar.xz | |
rc: fix shift regresison, sorry
| -rw-r--r-- | sys/src/cmd/rc/simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rc/simple.c b/sys/src/cmd/rc/simple.c index cec72f5d7..ede797d30 100644 --- a/sys/src/cmd/rc/simple.c +++ b/sys/src/cmd/rc/simple.c @@ -233,7 +233,7 @@ execshift(void) break; } star = vlook("*"); - for(;star->val;--n){ + for(;n>0 && star->val;--n){ a = star->val->next; free(star->val->word); free(star->val); |
