forked from osmocom/wireshark
pref_models(Qt/model): Fix Dead Store (Found by Clang Analyzer)
Although the value stored to 'pref' is used in the enclosing expression, the value is never actually read from 'pref'
This commit is contained in:
parent
a3f9c6bc45
commit
d886837df9
|
@ -36,7 +36,7 @@ static void prefInsertPrefPtr(void * pref_ptr, pref_t * pref)
|
|||
gpointer val = (gpointer) pref;
|
||||
|
||||
/* Already existing entries will be ignored */
|
||||
if ((pref = (pref_t *)g_hash_table_lookup(pref_ptr_to_pref_, key)) == NULL)
|
||||
if ((void *)g_hash_table_lookup(pref_ptr_to_pref_, key) == NULL)
|
||||
g_hash_table_insert(pref_ptr_to_pref_, key, val);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue