forked from pool/coreutils
26 lines
451 B
Diff
26 lines
451 B
Diff
--- src/cut.c
|
|
+++ src/cut.c
|
|
@@ -869,7 +869,10 @@
|
|
c = getc (stream);
|
|
empty_input = (c == EOF);
|
|
if (c != EOF)
|
|
- ungetc (c, stream);
|
|
+ {
|
|
+ ungetc (c, stream);
|
|
+ wc = 0;
|
|
+ }
|
|
else
|
|
wc = WEOF;
|
|
|
|
--- src/expand.c
|
|
+++ src/expand.c
|
|
@@ -414,7 +414,7 @@
|
|
for (;;)
|
|
{
|
|
/* Input character, or EOF. */
|
|
- wint_t wc;
|
|
+ wint_t wc = 0;
|
|
|
|
/* If true, perform translations. */
|
|
bool convert = true;
|