Skip to content

Commit 28e9bdc

Browse files
David WoodhouseDavid Woodhouse
David Woodhouse
authored and
David Woodhouse
committed
Add more {} around one-line if() clauses
Signed-off-by: David Woodhouse <[email protected]>
1 parent 558f83e commit 28e9bdc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/pkcs11h-serialization.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@ __parse_pkcs11_uri (
284284
rv = __parse_token_uri_attr (p, end - p, field,
285285
__token_fields[i].field_size,
286286
NULL);
287-
if (rv != CKR_OK)
287+
if (rv != CKR_OK) {
288288
goto cleanup;
289+
}
289290

290291
goto matched;
291292
}
@@ -295,14 +296,16 @@ __parse_pkcs11_uri (
295296

296297
rv = _pkcs11h_mem_malloc ((void *)&certificate_id->attrCKA_ID,
297298
end - p);
298-
if (rv != CKR_OK)
299+
if (rv != CKR_OK) {
299300
goto cleanup;
301+
}
300302

301303
rv = __parse_token_uri_attr (p, end - p, certificate_id->attrCKA_ID,
302304
end - p,
303305
&certificate_id->attrCKA_ID_size);
304-
if (rv != CKR_OK)
306+
if (rv != CKR_OK) {
305307
goto cleanup;
308+
}
306309

307310
goto matched;
308311
}

0 commit comments

Comments
 (0)