From 38d86476c575d1a894d74fe814c3cc84b3d4d5b0 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sat, 10 Jun 1995 23:19:43 +0000 Subject: [PATCH] recv_tocken: Initialize stack variable to 0 before using git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6034 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gss-sample/ChangeLog | 4 ++++ src/appl/gss-sample/gss-misc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/appl/gss-sample/ChangeLog b/src/appl/gss-sample/ChangeLog index 097a40e2b..ff12e3166 100644 --- a/src/appl/gss-sample/ChangeLog +++ b/src/appl/gss-sample/ChangeLog @@ -1,3 +1,7 @@ +Sat Jun 10 19:06:03 1995 Ezra Peisach + + * gss-misc.c (recv_token): Initialize local variable to 0. + Sat Jun 10 00:28:50 1995 Theodore Y. Ts'o * gss-misc.c (recv_token): Allow for partial reads while reading diff --git a/src/appl/gss-sample/gss-misc.c b/src/appl/gss-sample/gss-misc.c index 625c601b5..66ad94a49 100644 --- a/src/appl/gss-sample/gss-misc.c +++ b/src/appl/gss-sample/gss-misc.c @@ -114,7 +114,7 @@ int recv_token(s, tok) gss_buffer_t tok; { int ret; - int readsofar; + int readsofar = 0; if (display_file == 0) display_file = stderr; -- 2.26.2