SHA256
1
0
forked from pool/coreutils
coreutils/i18n-uninit.diff

26 lines
451 B
Diff
Raw Normal View History

--- 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;