mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
pgindent run for release 9.3
This is the first run of the Perl-based pgindent script. Also update pgindent instructions.
This commit is contained in:
@ -49,18 +49,18 @@ pg_malloc0(size_t size)
|
||||
void *
|
||||
pg_realloc(void *ptr, size_t size)
|
||||
{
|
||||
void *tmp;
|
||||
void *tmp;
|
||||
|
||||
/* Avoid unportable behavior of realloc(NULL, 0) */
|
||||
if (ptr == NULL && size == 0)
|
||||
size = 1;
|
||||
tmp = realloc(ptr, size);
|
||||
if (!tmp)
|
||||
{
|
||||
/* Avoid unportable behavior of realloc(NULL, 0) */
|
||||
if (ptr == NULL && size == 0)
|
||||
size = 1;
|
||||
tmp = realloc(ptr, size);
|
||||
if (!tmp)
|
||||
{
|
||||
fprintf(stderr, _("out of memory\n"));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user