aboutsummaryrefslogtreecommitdiff
path: root/hardinfo
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo')
-rw-r--r--hardinfo/dt_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hardinfo/dt_util.c b/hardinfo/dt_util.c
index 4524b8a0..da38fd91 100644
--- a/hardinfo/dt_util.c
+++ b/hardinfo/dt_util.c
@@ -141,7 +141,7 @@ void dtr_map_free(dtr_map *map) {
void dtr_map_sort(dtr_map *map, int sv)
{
int done = 0, cmp;
- dtr_map *this, *next, *top, *next_top;
+ dtr_map *this, *next, *top = NULL, *next_top;
uint32_t tmp_v;
char *tmp_l, *tmp_p;
if (map == NULL) return;
@@ -893,7 +893,7 @@ dtr_obj *dtr_get_parent_obj(dtr_obj *obj) {
/* find the value of a path-inherited property by climbing the path */
int dtr_inh_find(dtr_obj *obj, char *qprop, int limit) {
- dtr_obj *tobj, *pobj, *qobj;
+ dtr_obj *tobj, *pobj = NULL, *qobj;
uint32_t ret = 0;
int i, found = 0;