Commit 90d1dd6
committed
Fixed uninitialized value
Fixed the uninitialized value in chapter 1, exercise 9. If last_c was randomly assigned a space, a leading space would never be printed. The fix is to ensure that last_c is always initialized to a value that is not a space to prevent this situation.1 parent 678dc80 commit 90d1dd6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments