ref: 36747647964a2893277d27848ee8a1d577455cf8
parent: 4b683708fc97121cabae5a725f3feec987cf2ab4
author: Quentin Rameau <quinq@fifth.space>
date: Mon Oct 7 18:29:22 EDT 2019
[cc] Initialize counter to 0 in path()
--- a/src/cmd/cc/posix/cc.c
+++ b/src/cmd/cc/posix/cc.c
@@ -82,7 +82,7 @@
char *arg, buff[FILENAME_MAX];
size_t len, cnt;
- for ( ; *s && cnt < FILENAME_MAX; ++s) {
+ for (cnt = 0 ; *s && cnt < FILENAME_MAX; ++s) {
if (*s != '%') {
buff[cnt++] = *s;
continue;