summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-09-07 19:21:38 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-09-07 19:26:39 -0400
commitab2df0af3dc7c594d44ccccfa0e7ddeeefb1e70e (patch)
treee091bb07bb5445006403070d005e52154aa42934
parent95284856783b824a714b7506762f4adce3bb17ce (diff)
downloadxorg-lib-libXft-ab2df0af3dc7c594d44ccccfa0e7ddeeefb1e70e.tar.gz
revised fix for gcc 12 compiler warnings in xftextent.c
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/xftextent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xftextent.c b/src/xftextent.c
index debf73e..d30b95e 100644
--- a/src/xftextent.c
+++ b/src/xftextent.c
@@ -127,7 +127,7 @@ XftTextExtents8 (Display *dpy,
return;
if (len <= NUM_LOCAL)
- glyphs = glyphs_local;
+ *(glyphs = glyphs_local) = 0;
else
{
glyphs = AllocUIntArray (len);
@@ -158,7 +158,7 @@ XftTextExtents16 (Display *dpy,
return;
if (len <= NUM_LOCAL)
- glyphs = glyphs_local;
+ *(glyphs = glyphs_local) = 0;
else
{
glyphs = AllocUIntArray (len);
@@ -189,7 +189,7 @@ XftTextExtents32 (Display *dpy,
return;
if (len <= NUM_LOCAL)
- glyphs = glyphs_local;
+ *(glyphs = glyphs_local) = 0;
else
{
glyphs = AllocUIntArray (len);
@@ -223,7 +223,7 @@ XftTextExtentsUtf8 (Display *dpy,
return;
i = 0;
- glyphs = glyphs_local;
+ *(glyphs = glyphs_local) = 0;
size = NUM_LOCAL;
while (len && (l = FcUtf8ToUcs4 (string, &ucs4, len)) > 0)
{
@@ -270,7 +270,7 @@ XftTextExtentsUtf16 (Display *dpy,
return;
i = 0;
- glyphs = glyphs_local;
+ *(glyphs = glyphs_local) = 0;
size = NUM_LOCAL;
while (len && (l = FcUtf16ToUcs4 (string, endian, &ucs4, len)) > 0)
{