krb5/krb5-1.11-alpha1-init.patch
Nalin Dahyabhai 282fb3c1e0 packaging tweaks
- handle releases where texlive packaging wasn't yet as complicated as it
  is in Fedora 18
- fix an uninitialized-variable error building one of the test programs
2012-11-16 17:19:59 -05:00

13 lines
526 B
Diff

If krb5_init_context() fails, context is going to be NULL anyway.
--- krb5/src/lib/krb5/krb/t_cc_config.c
+++ krb5/src/lib/krb5/krb/t_cc_config.c
@@ -117,7 +117,7 @@ main(int argc, char **argv)
int c;
unsigned int i;
- bail_on_err(context, "Error initializing Kerberos library",
+ bail_on_err(NULL, "Error initializing Kerberos library",
krb5_init_context(&context));
bail_on_err(context, "Error getting location of default ccache",
krb5_cc_default(context, &ccache));