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
charmap-dir.c
charmap-dir.h
charmap-kw.gperf
charmap-kw.h
charmap.c Add fall-through comments. 2019-02-12 10:30:34 +00:00
charmap.h
config.h
ld-address.c
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
ld-measurement.c
ld-messages.c
ld-monetary.c
ld-name.c
ld-numeric.c
ld-paper.c
ld-telephone.c
ld-time.c
linereader.c
linereader.h
locale-spec.c
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
locarchive.c
locfile-kw.gperf
locfile-kw.h
locfile-token.h
locfile.c
locfile.h
record-status.c
record-status.h
repertoire.c
repertoire.h
simple-hash.c
simple-hash.h
xmalloc.c
xstrdup.c