lib/krb5: WIN32 _krb5_load_plugins wrong constness

The 'plugin_prefix' variable was declared 'const' which generates
a warning because the C string is freed.

This change removes the 'const' designation.

Change-Id: I6f3838d6dbf1bb496f286c96aea96bae8948930d
This commit is contained in:
Jeffrey Altman
2019-01-08 11:09:15 -05:00
parent 9358747426
commit 9d3e206b76

View File

@@ -331,7 +331,7 @@ _krb5_load_plugins(krb5_context context, const char *name, const char **paths)
char *dirname = NULL;
DIR *d;
#ifdef _WIN32
const char * plugin_prefix;
char *plugin_prefix;
size_t plugin_prefix_len;
if (asprintf(&plugin_prefix, "plugin_%s_", name) == -1)