Fix warning (from Victor)

This commit is contained in:
Love Hornquist Astrand
2013-06-03 21:56:34 -07:00
parent 4227e45a58
commit ebe9b82b8d

View File

@@ -502,8 +502,8 @@ keychain_iter(hx509_context context,
if (ret)
return EINVAL;
cert = hx509_cert_init_data(context, ptr, len, &error);
if (cert == NULL) {
*cert = hx509_cert_init_data(context, ptr, len, &error);
if (*cert == NULL) {
ret = heim_error_get_code(error);
heim_release(error);
goto out;