* init_ctx.c (krb5_init_context): Initialize local variable ctx
authorEzra Peisach <epeisach@mit.edu>
Tue, 12 Aug 1997 13:14:55 +0000 (13:14 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 12 Aug 1997 13:14:55 +0000 (13:14 +0000)
  before calling krb5_init_ets.
This keeps purify happy as we are not using a variable
before setting it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10172 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/init_ctx.c

index e0ca78a2ef4288bb88d428b53168f1fe196c1b61..1ed4b4bcf7ec0cbae07ac46f30aa511267f8e896 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 12 09:13:22 1997  Ezra Peisach  <epeisach@mit.edu>
+
+       * init_ctx.c (krb5_init_context): Initialize local variable ctx
+               before calling krb5_init_ets.
+
 Fri Aug  8 17:04:54 1997  Tom Yu  <tlyu@mit.edu>
 
        * rd_cred.c (krb5_rd_cred_basic): Check remote_addr and
index d43a65dfe1a2ec96cfc6566cbb8c2c0e34192c93..ed5d2fb3d291801c5bd3df81331896bf381a42fe 100644 (file)
@@ -35,7 +35,7 @@ KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
 krb5_init_context(context)
        krb5_context *context;
 {
-       krb5_context ctx;
+       krb5_context ctx = 0;
        krb5_error_code retval;
        int tmp;