Fix some benign compiler warnings.

This commit is contained in:
Milan Broz
2017-10-28 14:12:25 +02:00
parent 4e31595c7a
commit f7dadfb646
2 changed files with 2 additions and 3 deletions

View File

@@ -1279,13 +1279,12 @@ int LUKS2_config_get_requirements(struct crypt_device *cd, struct luks2_hdr *hdr
int LUKS2_config_set_requirements(struct crypt_device *cd, struct luks2_hdr *hdr, uint32_t reqs)
{
json_object *jobj_config, *jobj_requirements, *jobj_mandatory, *jobj;
int i, r = -EINVAL;
if (!hdr)
return -EINVAL;
json_object *jobj_config, *jobj_requirements, *jobj_mandatory, *jobj;
jobj_mandatory = json_object_new_array();
if (!jobj_mandatory)
return -ENOMEM;