Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c)

Ranier Vilela <ranier.vf@gmail.com>

From: Ranier Vilela <ranier.vf@gmail.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2023-09-01T14:38:12Z
Lists: pgsql-hackers

Attachments

Hi,

If a null locale is reached in these paths.
elog will dereference a null pointer.

best regards,

Ranier Vilela

Commits

  1. Refactor error messages for unsupported providers in pg_locale.c