avoid const warning

This commit is contained in:
Love Hornquist Astrand
2011-10-29 19:10:20 -07:00
parent 1192120b86
commit 42e6fb794d

View File

@@ -153,9 +153,9 @@ hx509_get_error_string(hx509_context context, int error_code)
s = heim_error_copy_string(msg); s = heim_error_copy_string(msg);
if (s) { if (s) {
str = heim_string_get_utf8(s); const char *cstr = heim_string_get_utf8(s);
if (str) if (cstr)
str = strdup(str); str = strdup(cstr);
heim_release(s); heim_release(s);
} }
return str; return str;