forked from pool/coreutils
c76409f6df
Copy from Base:System/coreutils based on submit request 39394 from user psmt OBS-URL: https://build.opensuse.org/request/show/39394 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coreutils?expand=0&rev=39
30 lines
831 B
Diff
30 lines
831 B
Diff
Index: src/cut.c
|
|
===================================================================
|
|
--- src/cut.c.orig 2010-05-04 17:27:29.879859350 +0200
|
|
+++ src/cut.c 2010-05-04 17:27:30.131859395 +0200
|
|
@@ -878,7 +878,10 @@ cut_fields_mb (FILE *stream)
|
|
c = getc (stream);
|
|
empty_input = (c == EOF);
|
|
if (c != EOF)
|
|
- ungetc (c, stream);
|
|
+ {
|
|
+ ungetc (c, stream);
|
|
+ wc = 0;
|
|
+ }
|
|
else
|
|
wc = WEOF;
|
|
|
|
Index: src/expand.c
|
|
===================================================================
|
|
--- src/expand.c.orig 2010-05-04 17:27:29.915859239 +0200
|
|
+++ src/expand.c 2010-05-04 17:27:30.155859324 +0200
|
|
@@ -404,7 +404,7 @@ expand_multibyte (void)
|
|
for (;;)
|
|
{
|
|
/* Input character, or EOF. */
|
|
- wint_t wc;
|
|
+ wint_t wc = 0;
|
|
|
|
/* If true, perform translations. */
|
|
bool convert = true;
|