Move variable decl into for loop in git-prompt.c
This commit is contained in:
parent
29fb84b995
commit
9eee926c56
@ -70,9 +70,8 @@ char* trim(char* str) {
|
||||
|
||||
char* append(char* buffer, int count, ...) {
|
||||
va_list list;
|
||||
int i;
|
||||
va_start(list, count);
|
||||
for (i = 0; i < count; i++) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
strcat(buffer, va_arg(list, char*));
|
||||
}
|
||||
va_end(list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user