From 406bf07ac4e2a4552863694f73cb49fd73bea05d Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 10 Jun 2010 14:50:09 +0000 Subject: [PATCH] Fix a couple of minor defects in trace.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24124 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/trace.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/os/trace.c b/src/lib/krb5/os/trace.c index 8db9c505a..3f31ea920 100644 --- a/src/lib/krb5/os/trace.c +++ b/src/lib/krb5/os/trace.c @@ -69,9 +69,8 @@ trace_format(krb5_context context, const char *fmt, va_list ap) { struct k5buf buf; krb5_error_code kerr; - size_t len; + size_t len, i; int err; - unsigned int i; struct addrinfo *ai; const krb5_data *d; krb5_data data; @@ -285,9 +284,9 @@ krb5int_trace(krb5_context context, const char *fmt, ...) char *str = NULL, *msg = NULL; krb5_int32 sec, usec; - va_start(ap, fmt); if (context == NULL || context->trace_callback == NULL) return; + va_start(ap, fmt); str = trace_format(context, fmt, ap); if (str == NULL) goto cleanup; -- 2.26.2