diff options
Diffstat (limited to 'src/backend/tcop/aclchk.c')
-rw-r--r-- | src/backend/tcop/aclchk.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/tcop/aclchk.c b/src/backend/tcop/aclchk.c index f8d43fad005..342d373a456 100644 --- a/src/backend/tcop/aclchk.c +++ b/src/backend/tcop/aclchk.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/Attic/aclchk.c,v 1.3 1996/11/03 06:52:29 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/Attic/aclchk.c,v 1.4 1996/11/08 05:59:23 momjian Exp $ * * NOTES * See acl.h. @@ -22,12 +22,14 @@ #include "access/htup.h" #include "access/tupmacs.h" #include "utils/builtins.h" +#include "utils/memutils.h" #include "utils/palloc.h" #include "catalog/indexing.h" #include "catalog/catalog.h" #include "catalog/catname.h" #include "catalog/pg_group.h" #include "catalog/pg_operator.h" +#include "catalog/pg_proc.h" #include "catalog/pg_user.h" #include "utils/syscache.h" #include "parser/catalog_utils.h" @@ -189,7 +191,7 @@ char* get_groname(AclId grosysid) { HeapTuple htp; - char *name; + char *name = NULL; htp = SearchSysCacheTuple(GROSYSID, PointerGetDatum(grosysid), 0,0,0); @@ -460,7 +462,7 @@ pg_ownercheck(char *usename, int cacheid) { HeapTuple htp; - AclId user_id, owner_id; + AclId user_id, owner_id = 0; htp = SearchSysCacheTuple(USENAME, PointerGetDatum(usename), 0,0,0); |