summaryrefslogtreecommitdiffstats
path: root/pcilib/property.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcilib/property.c')
-rw-r--r--pcilib/property.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcilib/property.c b/pcilib/property.c
index 7239601..09ed449 100644
--- a/pcilib/property.c
+++ b/pcilib/property.c
@@ -72,7 +72,7 @@ int pcilib_add_properties_from_registers(pcilib_t *ctx, size_t n, const pcilib_r
char *view_name;
pcilib_access_mode_t mode = 0;
- pcilib_register_view_description_t v;
+ pcilib_register_view_description_t v = {0};
pcilib_register_bank_description_t *b = &ctx->banks[banks[i]];
if (registers[i].type == PCILIB_REGISTER_PROPERTY) continue;
@@ -114,6 +114,7 @@ int pcilib_add_properties_from_registers(pcilib_t *ctx, size_t n, const pcilib_r
pcilib_clean_views(ctx, cur_view);
return err;
}
+
/*
pcilib_view_context_t *view_ctx = pcilib_find_view_context_by_name(ctx, v.base.name);
view_ctx->flags |= PCILIB_VIEW_FLAG_PROPERTY;