mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
Use correct sizeof operand in qsort call
Probably no practical impact, since all pointers ought to have the same size, but it was wrong nonetheless. Found by Coverity.
This commit is contained in:
parent
c9f310d377
commit
bad250f4f3
@ -175,7 +175,7 @@ SortAndUniqItems(TSQuery q, int *size)
|
||||
if (*size < 2)
|
||||
return res;
|
||||
|
||||
qsort_arg(res, *size, sizeof(QueryOperand **), compareQueryOperand, (void *) operand);
|
||||
qsort_arg(res, *size, sizeof(QueryOperand *), compareQueryOperand, (void *) operand);
|
||||
|
||||
ptr = res + 1;
|
||||
prevptr = res;
|
||||
|
Loading…
Reference in New Issue
Block a user