From 41e7cd2af165ecbaafeec9bc1b17a6766c4d37af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 18 Jul 2003 08:03:07 +0000 Subject: [PATCH] (hdb_create): check for dynamic backend after static to avoid warning from dynamic backend when using a known static backend git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12445 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/hdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/hdb/hdb.c b/lib/hdb/hdb.c index 2a932bb93..d5f202776 100644 --- a/lib/hdb/hdb.c +++ b/lib/hdb/hdb.c @@ -317,17 +317,17 @@ find_method (const char *filename, const char **rest) krb5_error_code hdb_create(krb5_context context, HDB **db, const char *filename) { - const struct hdb_method *h = NULL; + const struct hdb_method *h; const char *residual; if(filename == NULL) filename = HDB_DEFAULT_DB; krb5_add_et_list(context, initialize_hdb_error_table_r); + h = find_method (filename, &residual); #ifdef HAVE_DLOPEN - h = find_dynamic_method (context, filename, &residual); -#endif if (h == NULL) - h = find_method (filename, &residual); + h = find_dynamic_method (context, filename, &residual); +#endif if (h == NULL) krb5_errx(context, 1, "No database support! (hdb_create)"); return (*h->create)(context, db, residual);