Handle PQresultErrorField(PG_DIAG_SQLSTATE) returning NULL in streamutil.c.
In ff27db5d I missed that PQresultErrorField() may return NULL if there's no sqlstate associated with an error. Spotted-By: Coverity Reported-By: Michael Paquier Discussion: cab7npqq3o10sy6nvdu4pjq85gqtn5tbbkq2gnnuh2fbnu3r...@mail.gmail.com Backpatch: 9.5, like ff27db5d Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/2e6f6f3abe6fd249cc8a4d5eb194295ac3988b19 Modified Files -------------- src/bin/pg_basebackup/streamutil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers