Fix check on test function's arguments

The function won't cope with nkinds == 0, it leads to division by
zero.  It's just a test function though, so this is harmless and
there's no need to backport.

Author: Yuriy Grigoryev <[email protected]>
Reviewed-by: Sho Ito <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5f36942fd3196259ad5ad691f5ecbe4ce555ab7c

Modified Files
--------------
src/test/modules/test_resowner/test_resowner_many.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Reply via email to