Commit a2320e5
vlogger: a couple of bugfixes.
* Don't store the return value of getopt in a char. Storing in a char
and comparing against -1 breaks on ARM, where char is unsigned.
* The line argument to getline should point at a NULL char *. Otherwise,
getline will treat *line as a pointer to an allocated buffer. With
a little extra work, we could reuse the buffer, but always calling getline
with *line == NULL is safe.
Closes: #2 [via git-merge-pr]1 parent 88697d7 commit a2320e5
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | | - | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
0 commit comments