if (!(fieldNames = (const char **) calloc(nFields, sizeof(char *))))
{
fprintf(stderr, libpq_gettext("out of memory\n"));
- exit(1);
+ abort();
}
if (!(fieldNotNum = (unsigned char *) calloc(nFields, 1)))
{
fprintf(stderr, libpq_gettext("out of memory\n"));
- exit(1);
+ abort();
}
if (!(fieldMax = (int *) calloc(nFields, sizeof(int))))
{
fprintf(stderr, libpq_gettext("out of memory\n"));
- exit(1);
+ abort();
}
for (numFieldName = 0;
po->fieldName && po->fieldName[numFieldName];
if (!(fields = (char **) calloc(nFields * (nTups + 1), sizeof(char *))))
{
fprintf(stderr, libpq_gettext("out of memory\n"));
- exit(1);
+ abort();
}
}
else if (po->header && !po->html3)
if (!(fields[i * nFields + j] = (char *) malloc(plen + 1)))
{
fprintf(stderr, libpq_gettext("out of memory\n"));
- exit(1);
+ abort();
}
strcpy(fields[i * nFields + j], pval);
}
if (!border)
{
fprintf(stderr, libpq_gettext("out of memory\n"));
- exit(1);
+ abort();
}
p = border;
if (po->standard)
if (!fLength)
{
fprintf(stderr, libpq_gettext("out of memory\n"));
- exit(1);
+ abort();
}
for (j = 0; j < nFields; j++)
if (!tborder)
{
fprintf(stderr, libpq_gettext("out of memory\n"));
- exit(1);
+ abort();
}
for (i = 0; i <= width; i++)
tborder[i] = '-';
if (progname == NULL)
{
fprintf(stderr, "%s: out of memory\n", nodir_name);
- exit(1); /* This could exit the postmaster */
+ abort(); /* This could exit the postmaster */
}
#if defined(__CYGWIN__) || defined(WIN32)