Cast dlsym() returns before use

This commit is contained in:
Asanka C. Herath
2010-11-18 20:49:16 -05:00
parent 42cf8947aa
commit 2f8031c1d1
2 changed files with 3 additions and 3 deletions

View File

@@ -318,7 +318,7 @@ find_dynamic_method (krb5_context context,
if (asprintf(&symbol, "hdb_%s_interface", prefix) == -1)
krb5_errx(context, 1, "out of memory");
mso = dlsym(dl, symbol);
mso = (struct hdb_so_method *) dlsym(dl, symbol);
if (mso == NULL) {
krb5_warnx(context, "error finding symbol %s in %s: %s\n",
symbol, path, dlerror());