projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e948df8
)
Fix a couple of minor defects in trace.c
author
Greg Hudson
<ghudson@mit.edu>
Thu, 10 Jun 2010 14:50:09 +0000
(14:50 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Thu, 10 Jun 2010 14:50:09 +0000
(14:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24124
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/os/trace.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/os/trace.c
b/src/lib/krb5/os/trace.c
index 8db9c505aff98475be47d6f6c8baccd0fc28834e..3f31ea920dcd1a0d449563d9cda50ef9a8c29193 100644
(file)
--- 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;