mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user