mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue