This commit is contained in:
hanael80 2017-08-15 09:09:40 +09:00
parent 202c2ebec4
commit ebe228dab2
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ int dictReplace(dict *d, void *key, void *val)
dictEntry *entry, *existing, auxentry; dictEntry *entry, *existing, auxentry;
/* Try to add the element. If the key /* Try to add the element. If the key
* does not exists dictAdd will suceed. */ * does not exists dictAdd will succeed. */
entry = dictAddRaw(d,key,&existing); entry = dictAddRaw(d,key,&existing);
if (entry) { if (entry) {
dictSetVal(d, entry, val); dictSetVal(d, entry, val);