Clang static analyser: dereference of a null pointer

This commit is contained in:
Shahram Najm 2020-08-06 11:05:51 +01:00
parent 744c305e4e
commit d738937dd0
1 changed files with 1 additions and 0 deletions

View File

@ -455,6 +455,7 @@ int grib_trie_with_rank_insert(grib_trie_with_rank* t, const char* key, void* da
grib_trie_with_rank* last = t;
const char* k = key;
DebugAssert(t);
if (!t) return -1;
GRIB_MUTEX_INIT_ONCE(&once, &init);
GRIB_MUTEX_LOCK(&mutex);