diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-03 02:12:11 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-03 02:12:11 +0000 |
commit | 3f87aeefb4be3ac23ae636d3756ffdc446eaa62d (patch) | |
tree | 803735e1fe931bc5e0eda74e0b1e869d180aba8c /os/xdmauth.c | |
parent | 61926dbe592468076f8c9a666f0098d067d2213e (diff) |
Coverity #82: Dead variable elimination.
Diffstat (limited to 'os/xdmauth.c')
-rw-r--r-- | os/xdmauth.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/os/xdmauth.c b/os/xdmauth.c index 0d7691e13..774298133 100644 --- a/os/xdmauth.c +++ b/os/xdmauth.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; } |