From: Ken Raeburn Date: Fri, 12 Apr 2002 08:14:18 +0000 (+0000) Subject: * prompter.c (krb5_prompter_posix): Initialize 'i' and make it volatile X-Git-Tag: krb5-1.3-alpha1~770 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=96eeeda124e17bc719626928f8ff5c1b1c933974;p=krb5.git * prompter.c (krb5_prompter_posix): Initialize 'i' and make it volatile git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14390 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 0c5b1c6a6..9f981c884 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -3,6 +3,9 @@ * lock_file.c (krb5_lock_file) [POSIX_FILE_LOCKS]: Make static "zero" variable const. + * prompter.c (krb5_prompter_posix): Initialize 'i' and make it + volatile. + * locate_kdc.c (add_addrinfo_to_list) [TEST]: Print out socket type before returning. (add_host_to_list): Don't need to initialize err. Supply diff --git a/src/lib/krb5/os/prompter.c b/src/lib/krb5/os/prompter.c index 7a3de40d2..f3e3e20d8 100644 --- a/src/lib/krb5/os/prompter.c +++ b/src/lib/krb5/os/prompter.c @@ -36,7 +36,7 @@ krb5_prompter_posix(krb5_context context, int scratchchar; krb5_sigtype (*volatile ointrfunc)(); volatile krb5_error_code errcode; - int i; + volatile int i = 0; #ifndef ECHO_PASSWORD struct termios echo_control, save_control; volatile int fd;