Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84fc5c4

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 Ican not allocate enough memory for the ACL structure Ireturn an NULL instead of doing an exit_nicely(g_conn);From: Matthew C Aycock <maycock@scuba.pcpipeline.com>
1 parent733f2a4 commit84fc5c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp