[comp.windows.x] Small bug in uwm/uwm.c

dale@amiga.UUCP (Dale Luck) (05/20/88)

I never see bugs posted here really so maybe I'm just missing them
or I should not be sending them here as well as mailing them to
xbugs......
Is it not appropriate for us to post bugs we think we have found
as soon as we find them or should I wait till some official announcement
about whether the bug is verified or not by the group at MIT?
Just wondering. Well anyway here goes another one.

VERSION:
	X11 release 2

CLIENT MACHINE:
	amiga 2000

CLIENT OPERATING SYSTEM:
	amigados

DISPLAY:
	amiga

SYNOPSIS:
	uninitialized variable being used "Bool local;"

DESCRIPTION:
	The local variable 'local' declared in main is not given an
	initial value. If you do not specify any options on the control
	line for uwm, local is never set and is apparently assumed to
	contain NULL. This is not true though.  This may cause uwm
	to start up thinking it is in local mode when it is not.
	This behavior is dependant on whatever the stack happens to be set
	to when this program starts up.

REPEAT-BY:
	uwm

FIX:
89c89
<     Bool local;			/* If true, then do not use system defaults. */
---
>     Bool local = FALSE;		/* If true, then do not use system defaults. */

Dale Luck
amiga!dale