CVS: rdesktop ewmhints.c,1.11,1.12

Peter Åstrand <[email protected]> Sun, 09 Apr 2006 13:22:16 -0700
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28932

Modified Files:
	ewmhints.c 
Log Message:
ewmh_modify_state: Prevent using uninitialized state; simplify code.


Index: ewmhints.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/ewmhints.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ewmhints.c	27 Mar 2006 08:17:33 -0000	1.11
--- ewmhints.c	9 Apr 2006 20:22:11 -0000	1.12
***************
*** 241,245 ****
  	unsigned long nitems;
  	unsigned char *props;
! 	uint32 state;
  
  	/* The spec states that the window manager must respect any
--- 241,245 ----
  	unsigned long nitems;
  	unsigned char *props;
! 	uint32 state = WithdrawnState;
  
  	/* The spec states that the window manager must respect any
***************
*** 254,258 ****
  	}
  
! 	if ((result < 0) || !nitems || (state == WithdrawnState))
  	{
  		if (add)
--- 254,258 ----
  	}
  
! 	if (state == WithdrawnState)
  	{
  		if (add)



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642