Add an element to the target hash table */
| 290 | |
| 291 | /* Add an element to the target hash table */ |
| 292 | int dictAdd(dict *d, void *key, void *val) |
| 293 | { |
| 294 | dictEntry *entry = dictAddRaw(d,key,NULL); |
| 295 | |
| 296 | if (!entry) return DICT_ERR; |
| 297 | dictSetVal(d, entry, val); |
| 298 | return DICT_OK; |
| 299 | } |
| 300 | |
| 301 | /* Low level add or find: |
| 302 | * This function adds the entry but instead of setting a value returns the |
no test coverage detected