Skip to content

Commit

Permalink
fix setValue for HashTable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrubagu-bss authored and akallabeth committed Jun 28, 2021
1 parent 8eff825 commit 9c259f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winpr/libwinpr/utils/collections/HashTable.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static INLINE void setValue(wHashTable* table, wKeyValuePair* pair, const void*
if (!pair)
return;
disposeValue(table, pair->value);
if (table->key.fnObjectNew)
if (table->value.fnObjectNew)
pair->value = table->value.fnObjectNew(value);
else
pair->value = (void*)value;
Expand Down

0 comments on commit 9c259f0

Please sign in to comment.