Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 84fc5c4

Browse files
committed
I found one other change that I would like to make to the
src. It is in the function ParseACL. When I find that I can not allocate enough memory for the ACL structure I return an NULL instead of doing an exit_nicely(g_conn); From: Matthew C Aycock <maycock@scuba.pcpipeline.com>
1 parent 733f2a4 commit 84fc5c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/pg_dump.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.56 1997/12/04 01:31:27 scrappy Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.57 1997/12/05 01:04:25 scrappy Exp $
2525
*
2626
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2727
*
@@ -2221,7 +2221,7 @@ ACL *ParseACL(const char *acls,int *count)
22212221
ParsedAcl=(ACL *)calloc(AclLen,sizeof(ACL));
22222222
if (!ParsedAcl) {
22232223
fprintf(stderr,"Could not allocate space for ACLS!\n");
2224-
return (ACL *)NULL;
2224+
exit_nicely(g_conn);
22252225
}
22262226

22272227
s=strdup(acls);

0 commit comments

Comments
 (0)