glibc/locale/programs
Stefan Liebler 9e6a7d9c17 Fix build warnings in locale/programs/ld-ctype.c
This patch fixes the gcc warnings seen with gcc 9 -march>=z13 on s390x:
programs/ld-ctype.c: In function ‘ctype_read’:
programs/ld-ctype.c:1392:13: error: ‘wch’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1392 |    uint32_t wch;
      |             ^~~
programs/ld-ctype.c:1401:7: error: ‘seq’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1401 |    if (seq != NULL && seq->nbytes == 1)
      |       ^
programs/ld-ctype.c:1391:20: note: ‘seq’ was declared here
 1391 |    struct charseq *seq;
      |                    ^~~

Both seq and wch are uninitialized if get_character fails.
Thus we are now returning with an error.

ChangeLog:

	* locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
	Return error if get_character fails.
2019-06-26 08:34:25 +02:00
..
3level.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-dir.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-dir.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-kw.gperf Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-kw.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap.c Add fall-through comments. 2019-02-12 10:30:34 +00:00
charmap.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
config.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-address.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-collate.c Fix parentheses error in iconvconfig.c and ld-collate.c [BZ #24372] 2019-03-21 17:53:03 -03:00
ld-ctype.c Fix build warnings in locale/programs/ld-ctype.c 2019-06-26 08:34:25 +02:00
ld-identification.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-measurement.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-messages.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-monetary.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-name.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-numeric.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-paper.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-telephone.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-time.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
linereader.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
linereader.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locale-spec.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locale.c locale: Add LOCPATH diagnostics to the locale program 2019-04-23 18:16:26 +02:00
localedef.c Update copyright dates not handled by scripts/update-copyrights. 2019-01-01 00:15:13 +00:00
localedef.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locarchive.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-kw.gperf Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-kw.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-token.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
record-status.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
record-status.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
repertoire.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
repertoire.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
simple-hash.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
simple-hash.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
xmalloc.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
xstrdup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00