From: Ken Raeburn Date: Sat, 6 Mar 2004 00:54:48 +0000 (+0000) Subject: * lock_file.c (krb5_lock_file): Initialize flock data on entry, but don't X-Git-Tag: krb5-1.4-beta1~562 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3a95ecb7aef27aff034f3a2b0bf1d145feece9a;p=krb5.git * lock_file.c (krb5_lock_file): Initialize flock data on entry, but don't bother with a static version to copy from. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16150 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 90fe4df27..e581ef440 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2004-03-05 Ken Raeburn + + * lock_file.c (krb5_lock_file): Initialize flock data on entry, + but don't bother with a static version to copy from. + 2004-02-26 Jeffrey Altman * sendto_kdc.c, send524.c: diff --git a/src/lib/krb5/os/lock_file.c b/src/lib/krb5/os/lock_file.c index 48af525d6..3c07d8d63 100644 --- a/src/lib/krb5/os/lock_file.c +++ b/src/lib/krb5/os/lock_file.c @@ -68,10 +68,7 @@ krb5_lock_file(krb5_context context, int fd, int mode) krb5_error_code retval = 0; #ifdef POSIX_FILE_LOCKS int lock_cmd = F_SETLKW; - static const struct flock flock_zero; - struct flock lock_arg; - - lock_arg = flock_zero; + struct flock lock_arg = { 0 }; #endif switch (mode & ~KRB5_LOCKMODE_DONTBLOCK) {