mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 14:34:29 +00:00
Coverity #82: Dead variable elimination.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* os/xdmauth.c:
|
||||
Coverity #82: Dead variable elimination.
|
||||
|
||||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* GL/glx/glxcmdsswap.c:
|
||||
|
||||
@@ -463,10 +463,9 @@ XdmFromID (XID id, unsigned short *data_lenp, char **datap)
|
||||
int
|
||||
XdmRemoveCookie (unsigned short data_length, char *data)
|
||||
{
|
||||
XdmAuthorizationPtr auth, prev;
|
||||
XdmAuthorizationPtr auth;
|
||||
XdmAuthKeyPtr key_bits, rho_bits;
|
||||
|
||||
prev = 0;
|
||||
switch (data_length)
|
||||
{
|
||||
case 16:
|
||||
@@ -486,10 +485,7 @@ XdmRemoveCookie (unsigned short data_length, char *data)
|
||||
if (XdmcpCompareKeys (rho_bits, &auth->rho) &&
|
||||
XdmcpCompareKeys (key_bits, &auth->key))
|
||||
{
|
||||
if (prev)
|
||||
prev->next = auth->next;
|
||||
else
|
||||
xdmAuth = auth->next;
|
||||
xdmAuth = auth->next;
|
||||
xfree (auth);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user