Skip to content

Commit

Permalink
Initialize status in krb5_ldap_parse_db_params
Browse files Browse the repository at this point in the history
If db_args is non-null but empty, status could be returned without
being initialized; gcc with optimization correctly warns about this,
causing a build failure.  (This bug was introduced by
0b1dc2f which was pushed after the
1.11 release branch, so it isn't in any release.)
  • Loading branch information
greghudson committed Mar 11, 2013
1 parent 4b75177 commit 233e973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ krb5_error_code
krb5_ldap_parse_db_params(krb5_context context, char **db_args)
{
char *opt = NULL, *val = NULL;
krb5_error_code status;
krb5_error_code status = 0;
krb5_ldap_context *lctx = context->dal_handle->db_context;

if (db_args == NULL)
Expand Down

0 comments on commit 233e973

Please sign in to comment.