Commit 6edae6dd by Ondrej Kozina

return NULL instead of 0

parent f787eafd
......@@ -1601,13 +1601,13 @@ const char *LUKS2_get_cipher(struct luks2_hdr *hdr, int segment)
return NULL;
if (!json_object_object_get_ex(hdr->jobj, "segments", &jobj1))
return 0;
return NULL;
if (!json_object_object_get_ex(jobj1, buf, &jobj2))
return 0;
return NULL;
if (!json_object_object_get_ex(jobj2, "encryption", &jobj3))
return 0;
return NULL;
return json_object_get_string(jobj3);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment