ref: 45d6bca5f0c405a3fc3e485d23a52e980627988f
parent: d0e510b29af9a1d12a507f03f352b6d39adc0ace
author: cinap_lenrek <[email protected]>
date: Sun May 15 19:09:23 EDT 2016
rc: fix shift regresison, sorry
--- a/sys/src/cmd/rc/simple.c
+++ b/sys/src/cmd/rc/simple.c
@@ -233,7 +233,7 @@
break;
}
star = vlook("*");
- for(;star->val;--n){
+ for(;n>0 && star->val;--n){
a = star->val->next;
free(star->val->word);
free(star->val);