Fix PH7_HashmapDup().
All checks were successful
The build was successful.

This function needs to store the next index. Otherwise it will start to count from beginning, duplicating existing keys.
This commit is contained in:
2019-04-19 20:16:42 +02:00
parent 16c6b8d970
commit e794ffd97b

View File

@@ -1036,6 +1036,8 @@ PH7_PRIVATE sxi32 PH7_HashmapDup(ph7_hashmap *pSrc, ph7_hashmap *pDest) {
/* Point to the next entry */
pEntry = pEntry->pPrev; /* Reverse link */
}
/* Save the next array index */
pDest->iNextIdx = pSrc->iNextIdx;
return SXRET_OK;
}
/*