Skip to content

Commit a3682c0

Browse files
authored
Merge pull request #39 from TobiasJDC/fix-uninitialized-1-09
Fixed uninitialized value
2 parents 678dc80 + 90d1dd6 commit a3682c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_1/exercise_1_09/copy_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
int main(void)
44
{
55
char c;
6-
char last_c;
6+
char last_c = '\0';
77
while ((c = getchar()) != EOF)
88
{
99
if (c != ' ' || last_c != ' ')

0 commit comments

Comments
 (0)