1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Some more FLEXIBLE_ARRAY_MEMBER fixes.

This commit is contained in:
Tom Lane
2015-02-21 01:46:43 -05:00
parent 33b2a2c97f
commit f2874feb7c
7 changed files with 18 additions and 9 deletions

View File

@ -892,7 +892,8 @@ pqSaveMessageField(PGresult *res, char code, const char *value)
pfield = (PGMessageField *)
pqResultAlloc(res,
sizeof(PGMessageField) + strlen(value),
offsetof(PGMessageField, contents) +
strlen(value) + 1,
TRUE);
if (!pfield)
return; /* out of memory? */