@cryptotaxi247 / netdata-1 / commits / 51e6ce286

internal log error, when passing NULL dictionary (#13803)

* fixes internal log error, when passing NULL dictionary * item is needed - fatal provides enough info

Costa Tsaousis committed Oct 10, 2022 at 20:32 UTC 51e6ce2863daa4ab430771ff38983bf8396dcc03
1 file changed +1 -1
libnetdata/dictionary/dictionary.c
+1 -1
@@ -1627,7 +1627,7 @@ static inline void api_internal_check_with_trace(DICTIONARY *dict, DICTIONARY_IT
1627 item->dict->creation_function,
1628 item->dict->creation_line,
1629 item->dict->creation_file);
1630 - fatal("DICTIONARY: attempted to %s() but item is NULL", function);
1630 + fatal("DICTIONARY: attempted to %s() but dict is NULL", function);
1631 }
1632
1633 if(!allow_null_item && !item) {