git: 9front

Download patch

ref: a353bb623588835edd1024e91bcff41b9c736c33
parent: 9cc232cbd9b0ad9dffacc9109a13936fffbf7d51
author: cinap_lenrek <cinap_lenrek@felloff.net>
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);
--