summaryrefslogtreecommitdiffstats
path: root/src/tests/gssapi/common.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-09-17 14:42:46 -0400
committerGreg Hudson <ghudson@mit.edu>2012-09-17 14:42:46 -0400
commit5b624ab7388c17cfeae040aa41d0bfc74eca1fc1 (patch)
tree0df0ce64ff79b6075819a6364ae4507849144fea /src/tests/gssapi/common.c
parent56feee187579905c9101b0cdbdd8c6a850adcfc9 (diff)
downloadkrb5-5b624ab7388c17cfeae040aa41d0bfc74eca1fc1.tar.gz
krb5-5b624ab7388c17cfeae040aa41d0bfc74eca1fc1.tar.xz
krb5-5b624ab7388c17cfeae040aa41d0bfc74eca1fc1.zip
Add tests for gss_inquire_mechs_for_name
Diffstat (limited to 'src/tests/gssapi/common.c')
-rw-r--r--src/tests/gssapi/common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/gssapi/common.c b/src/tests/gssapi/common.c
index ab968ccb7..61558a006 100644
--- a/src/tests/gssapi/common.c
+++ b/src/tests/gssapi/common.c
@@ -135,7 +135,9 @@ display_oid(const char *tag, gss_OID oid)
major = gss_oid_to_str(&minor, oid, &buf);
check_gsserr("gss_oid_to_str", major, minor);
- printf("%s:\t%.*s\n", tag, (int)buf.length, (char *)buf.value);
+ if (tag != NULL)
+ printf("%s:\t", tag);
+ printf("%.*s\n", (int)buf.length, (char *)buf.value);
(void)gss_release_buffer(&minor, &buf);
}