projects
/
pgfincore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a05da7e
)
Fix check on NULL input for drawer function
author
CΓ©dric Villemain
<cedric@2ndquadrant.fr>
Wed, 28 Sep 2016 13:23:29 +0000
(15:23 +0200)
committer
CΓ©dric Villemain
<cedric@2ndquadrant.fr>
Wed, 28 Sep 2016 13:23:29 +0000
(15:23 +0200)
The test was not done on the first argument..
pgfincore.c
patch
|
blob
|
blame
|
history
diff --git
a/pgfincore.c
b/pgfincore.c
index 8ac5c6359fbcef554a362239ee6b3d5dc4750729..b73d66bb2c2070270c777a49157602230e4f3bca 100644
(file)
--- 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);