From: Cédric Villemain Date: Wed, 28 Sep 2016 13:23:29 +0000 (+0200) Subject: Fix check on NULL input for drawer function X-Git-Tag: debian/1.2.1-1~2 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=423f8e595f53c124d79b12ff55a66697f119b261;p=pgfincore.git Fix check on NULL input for drawer function The test was not done on the first argument.. --- diff --git a/pgfincore.c b/pgfincore.c index 8ac5c63..b73d66b 100644 --- a/pgfincore.c +++ b/pgfincore.c @@ -1111,7 +1111,7 @@ pgfincore_drawer(PG_FUNCTION_ARGS) bits8 *sp; bits8 x; - if (PG_ARGISNULL(1)) + if (PG_ARGISNULL(0)) elog(ERROR, "pgfincore_drawer: databit argument shouldn't be NULL"); databit = PG_GETARG_VARBIT_P(0);