diff options
| author | Burt P <pburt0@gmail.com> | 2018-12-02 11:46:17 -0600 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-12-03 02:28:28 -0800 | 
| commit | cd7b2894d666efda404a5bfe33193f4048d4e665 (patch) | |
| tree | 9a993abb6f686463bf33ea8cfd0d7bc879ac2022 | |
| parent | 50b61eee47f3b498585e01f89bfd583b3407ec21 (diff) | |
dt_util: more fixes from warnings
Signed-off-by: Burt P <pburt0@gmail.com>
| -rw-r--r-- | hardinfo/dt_util.c | 4 | 
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; | 
