base: Translate context init error codes

This commit is contained in:
Nicolas Williams
2023-05-27 16:30:09 -05:00
parent bc4e6591af
commit 3e2c1c83b4

View File

@@ -64,7 +64,7 @@ _warnerr(heim_context context, int do_errtext,
return ENOMEM;
*arg++ = msg;
}
if (context && do_errtext) {
if (do_errtext) {
strlcat(xfmt, "%s", sizeof(xfmt));
err_str = heim_get_error_message(context, code);