summaryrefslogtreecommitdiff
path: root/src/Composite.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:49 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:49 +0000
commitbdc0667ef29e24b1a2188b11546d843a7d3e5ef6 (patch)
treee0a23167aca0fb1127f4cd78edf458b633b31eac /src/Composite.c
parent6a13c9e08bb042c81ae904c44a38a50d785c824e (diff)
Diffstat (limited to 'src/Composite.c')
-rw-r--r--src/Composite.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Composite.c b/src/Composite.c
index 6d3ea64..c3612cc 100644
--- a/src/Composite.c
+++ b/src/Composite.c
@@ -58,6 +58,7 @@ 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/Xt/Composite.c,v 1.6 2001/12/14 19:56:08 dawes Exp $ */
#define COMPOSITE
#include "IntrinsicI.h"
@@ -167,7 +168,7 @@ static void CompositeClassPartInitialize(widgetClass)
WidgetClass widgetClass;
{
register CompositePartPtr wcPtr;
- register CompositePartPtr superPtr;
+ register CompositePartPtr superPtr = NULL;
wcPtr = (CompositePartPtr)
&(((CompositeWidgetClass)widgetClass)->composite_class);
@@ -176,10 +177,6 @@ static void CompositeClassPartInitialize(widgetClass)
/* don't compute possible bogus pointer */
superPtr = (CompositePartPtr)&(((CompositeWidgetClass)widgetClass
->core_class.superclass)->composite_class);
-#ifdef lint
- else
- superPtr = NULL;
-#endif
/* We don't need to check for null super since we'll get to composite
eventually, and it had better define them! */