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:
Rafal Kupiec 2019-04-19 20:16:42 +02:00
부모 16c6b8d970
커밋 e794ffd97b
로그인 계정: belliash
GPG 키 ID: 4E829243E0CFE6B4

파일 보기

@ -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;
}
/*