Skip to content

Commit

Permalink
Move declaration to beginning of block
Browse files Browse the repository at this point in the history
  • Loading branch information
jacereda committed Jan 26, 2021
1 parent ef64a36 commit b663992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emit.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ mygetenv(const char *v)
unsigned i = 0;
if (strcmp(v, ENVBUFSIZE) == 0) {
static char buf[64];
unsigned j = 0;
// Buffer size is the second positional value.
while (path[i++] != ';')
;
unsigned j = 0;
while (path[i] != ';')
buf[j++] = path[i++];
buf[j] = 0;
Expand Down

0 comments on commit b663992

Please sign in to comment.