Message ID | 4cd4f5d8-d93b-47ff-b039-9fbef4d9ee37@BAMAIL02.ba.imgtec.org |
---|---|
State | New |
Headers | show |
On Thu, 11 Dec 2014, Steve Ellcey wrote: > 2014-12-11 Steve Ellcey <sellcey@imgtec.com> > > * locale/programs/ld-ctype.c (zero): New static global variable. > (find_translit2): Return zero instead of array literal. Please follow up to <https://sourceware.org/ml/libc-alpha/2014-12/msg00287.html>.
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index 67846b3..01de017 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -1724,6 +1724,7 @@ to-value character sequence is smaller than from-value sequence")); } } +static uint32_t zero[] = { 0 }; static uint32_t * find_translit2 (struct locale_ctype_t *ctype, const struct charmap_t *charmap, @@ -1777,7 +1778,7 @@ find_translit2 (struct locale_ctype_t *ctype, const struct charmap_t *charmap, for (wi = tirunp->from; wi <= wch; wi += tirunp->step) if (wi == wch) - return (uint32_t []) { 0 }; + return zero; } }