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:
Peter Eisentraut 2012-03-12 20:56:13 +02:00
parent c9f310d377
commit bad250f4f3

View File

@ -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;