summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{