1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Use void * instead of List * to avoid Coverity false positives.

Coverity complains that this should be "List" but that is clearly not correct.
This commit is contained in:
David Steele 2021-11-03 12:14:17 -04:00
parent 2a576477b3
commit 1b93a77236
2 changed files with 4 additions and 4 deletions

View File

@ -1366,8 +1366,8 @@ backupProcessQueue(Manifest *manifest, List **queueList)
MEM_CONTEXT_TEMP_BEGIN()
{
// Create list of process queue
*queueList = lstNewP(sizeof(List *));
// Create list of process queues (use void * instead of List * to avoid Coverity false positive)
*queueList = lstNewP(sizeof(void *));
// Generate the list of targets
StringList *targetList = strLstNew();

View File

@ -1949,8 +1949,8 @@ restoreProcessQueue(Manifest *manifest, List **queueList)
MEM_CONTEXT_TEMP_BEGIN()
{
// Create list of process queue
*queueList = lstNewP(sizeof(List *));
// Create list of process queues (use void * instead of List * to avoid Coverity false positive)
*queueList = lstNewP(sizeof(void *));
// Generate the list of processing queues (there is always at least one)
StringList *targetList = strLstNew();