diff --git a/lib/krb5/mk_error.c b/lib/krb5/mk_error.c index 7f0be713e..3791fe75a 100644 --- a/lib/krb5/mk_error.c +++ b/lib/krb5/mk_error.c @@ -76,8 +76,8 @@ krb5_mk_error_ext(krb5_context context, msg.realm = server->realm; msg.sname = server->name; }else{ - static char unspec[] = ""; - msg.realm = unspec; + static const char unspec[] = ""; + msg.realm = rk_UNCONST(unspec); } msg.crealm = rk_UNCONST(client_realm); msg.cname = rk_UNCONST(client_name);