remove bugs related to uninitialized variables
These bugs became visible when using optimization options. They were either not present unoptimized or very unlikely to occur. However, given the options, the resulting program would behave incorrectly and reliably break under all circumstances. The makefile will see the intended changes accordingly in the following commit to ensure compatibility.
This commit is contained in:
parent
fa5095133a
commit
733a013ee7
2 changed files with 18 additions and 14 deletions
1
output.c
1
output.c
|
@ -8,6 +8,7 @@ printw(FILE *fp, unsigned char *s, int slen)
|
|||
static int col;
|
||||
int c;
|
||||
|
||||
c = '\n';
|
||||
while (slen--) {
|
||||
fputc((c = *s++), fp);
|
||||
++col;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue