Hi,

It seems like this patch introduced a compilation warning[0]:

postgres_fdw.c: In function 'postgresExplainForeignScan':
postgres_fdw.c:3221:36: error: 'relname' may be used uninitialized
[-Werror=maybe-uninitialized]
 3221 |                                 if (relname == NULL ||
strcmp(refname, relname) != 0)
      |                                    ^
postgres_fdw.c:3132:45: note: 'relname' was declared here
 3132 |                                 char       *relname;
      |                                             ^~~~~~~

Setting relname to NULL during declaration fixes the warning and seems
to be the expected behavior?

[0]: 
https://github.com/postgres/postgres/actions/runs/32244563943/job/96042498375

Regards,
Anthonin Bonnefoy

Attachment: v1-0001-Fix-compilation-warning-after-0ee83dd4.patch
Description: Binary data

Reply via email to