Use NIL instead of NULL for an empty List.
authorRobert Haas <rhaas@postgresql.org>
Thu, 3 Nov 2016 15:24:01 +0000 (11:24 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 3 Nov 2016 15:24:01 +0000 (11:24 -0400)
Tatsuro Yamada, reviewed by Ashutosh Bapat

contrib/postgres_fdw/postgres_fdw.c

index 906d6e6abd42f6fd5a821bf7ac2bba091f2c311c..2cfb82bf598c21b96f3cd9c0968509c9ea7334cb 100644 (file)
@@ -4431,7 +4431,7 @@ postgresGetForeignJoinPaths(PlannerInfo *root,
                                       NIL,     /* no pathkeys */
                                       NULL,    /* no required_outer */
                                       epq_path,
-                                      NULL);   /* no fdw_private */
+                                      NIL);    /* no fdw_private */
 
    /* Add generated path into joinrel by add_path(). */
    add_path(joinrel, (Path *) joinpath);
@@ -4748,7 +4748,7 @@ add_foreign_grouping_paths(PlannerInfo *root, RelOptInfo *input_rel,
                                        NIL,    /* no pathkeys */
                                        NULL,   /* no required_outer */
                                        NULL,
-                                       NULL);  /* no fdw_private */
+                                       NIL);   /* no fdw_private */
 
    /* Add generated path into grouped_rel by add_path(). */
    add_path(grouped_rel, (Path *) grouppath);