* prompter.c (krb5_prompter_posix): Initialize 'i' and make it volatile
authorKen Raeburn <raeburn@mit.edu>
Fri, 12 Apr 2002 08:14:18 +0000 (08:14 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 12 Apr 2002 08:14:18 +0000 (08:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14390 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/prompter.c

index 0c5b1c6a6aec026c94aa2e4f8fd9dc15701303f8..9f981c884abdd778f9b79ff5a6a8c7f2c9704921 100644 (file)
@@ -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
index 7a3de40d21a08c5421e331df27d22709c4b1c0f1..f3e3e20d872974ff14797ddcb4ce1aee0621472e 100644 (file)
@@ -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;