Commit 3f87aeef authored by Adam Jackson's avatar Adam Jackson 💣

Coverity #82: Dead variable elimination.

parent 61926dbe
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment