avoid const warning
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user