summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2007-10-03 20:13:55 +0000
committerAlexandra Ellwood <lxs@mit.edu>2007-10-03 20:13:55 +0000
commitb8e0037c076dfe2218cf14084ec249667d5bf87e (patch)
treeaeec4f8504765c1a0eaefb8378219aecb8053edb /src/lib
parent9436ed6857cba4ad6b019bbe601118168b9a140e (diff)
downloadkrb5-b8e0037c076dfe2218cf14084ec249667d5bf87e.tar.gz
krb5-b8e0037c076dfe2218cf14084ec249667d5bf87e.tar.xz
krb5-b8e0037c076dfe2218cf14084ec249667d5bf87e.zip
Removed NOP line of code from krb5_fcc_next_cred()
cursor = (krb5_cc_cursor *) fcursor; does nothing for a function with a prototype krb5_fcc_next_cred(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor, krb5_creds *creds) The correct line of code would be: *cursor = (krb5_cc_cursor) fcursor; Except it isn't necessary because fcursor isn't modified by krb5_fcc_next_cred(). Looks like code was copied from krb5_fcc_start_seq_get() and since the line was a NOP no one noticed it. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20085 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/ccache/cc_file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c
index 49ba479434..9abf93f3de 100644
--- a/src/lib/krb5/ccache/cc_file.c
+++ b/src/lib/krb5/ccache/cc_file.c
@@ -1903,7 +1903,6 @@ krb5_fcc_next_cred(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor,
TCHECK(kret);
fcursor->pos = fcc_lseek(d, (off_t) 0, SEEK_CUR);
- cursor = (krb5_cc_cursor *) fcursor;
lose:
MAYBE_CLOSE (context, id, kret);