summaryrefslogtreecommitdiff
path: root/src/PolyTxt16.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2004-04-23 18:42:09 +0000
committerEgbert Eich <eich@freedesktop.org>2004-04-23 18:42:09 +0000
commitc6349f43193b74a3c09945f3093a871b0157ba47 (patch)
treeaea173c19da6fa57e24eb4633ff815feb7ae3fa0 /src/PolyTxt16.c
parentc3c4ddc682950a01b80825021f3e2503ab01ea7f (diff)
downloadxorg-lib-libX11-c6349f43193b74a3c09945f3093a871b0157ba47.tar.gz
Merging XORG-CURRENT into trunk
Diffstat (limited to 'src/PolyTxt16.c')
-rw-r--r--src/PolyTxt16.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PolyTxt16.c b/src/PolyTxt16.c
index e75ad5c4..c7dce509 100644
--- a/src/PolyTxt16.c
+++ b/src/PolyTxt16.c
@@ -24,9 +24,11 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+/* $XFree86: xc/lib/X11/PolyTxt16.c,v 1.4 2001/10/28 03:32:31 tsi Exp $ */
#include "Xlibint.h"
+int
XDrawText16(dpy, d, gc, x, y, items, nitems)
register Display *dpy;
Drawable d;
@@ -108,7 +110,7 @@ XDrawText16(dpy, d, gc, x, y, items, nitems)
int nbytes = SIZEOF(xTextElt);
int PartialNChars = item->nchars;
int PartialDelta = item->delta;
- register xTextElt *elt;
+ register xTextElt *elt = NULL;
int FirstTimeThrough = True;
XChar2b *CharacterOffset = item->chars;