Skip to content

Commit

Permalink
util: reduce the scope of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dacav committed Jan 16, 2025
1 parent 02e625a commit 88af042
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,13 +884,14 @@ static void parse_opts(const cfg_t *cfg, const char *attr, struct opts *opts) {

static int get_device_opts(fido_dev_t *dev, int *pin, int *uv) {
fido_cbor_info_t *info = NULL;
char *const *ptr;
const bool *val;
size_t len;

*pin = *uv = -1; /* unsupported */

if (fido_dev_is_fido2(dev)) {
char *const *ptr;
size_t len;

if ((info = fido_cbor_info_new()) == NULL ||
fido_dev_get_cbor_info(dev, info) != FIDO_OK) {
fido_cbor_info_free(&info);
Expand Down

0 comments on commit 88af042

Please sign in to comment.