diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-12-05 01:04:25 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-12-05 01:04:25 +0000 |
commit | 84fc5c4aed74d22defba27170cbef0dec6a6261c (patch) | |
tree | dd61b0e0b1151280884cba904ebd3a50c1d97eeb /src | |
parent | 733f2a43cc9755d9ebc9bb7c43215b355526923f (diff) | |
download | postgresql-84fc5c4aed74d22defba27170cbef0dec6a6261c.tar.gz postgresql-84fc5c4aed74d22defba27170cbef0dec6a6261c.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 85f4418c056..c047b73ea99 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -21,7 +21,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.56 1997/12/04 01:31:27 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.57 1997/12/05 01:04:25 scrappy Exp $ * * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb * @@ -2221,7 +2221,7 @@ ACL *ParseACL(const char *acls,int *count) ParsedAcl=(ACL *)calloc(AclLen,sizeof(ACL)); if (!ParsedAcl) { fprintf(stderr,"Could not allocate space for ACLS!\n"); - return (ACL *)NULL; + exit_nicely(g_conn); } s=strdup(acls); |