Skip to content

Commit

Permalink
Fix bug deduplicate elemlist is null when elemlist size is 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterRaindrop authored and HuSen8891 committed Nov 13, 2023
1 parent af54957 commit 5a6cac3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/backend/utils/init/miscinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,10 +1809,7 @@ expand_shared_preload_libraries_string()


/* deduplicate list string */
if (list_length(elemlist) > 1)
{
deduplicate_elemlist = removeDuplicates(elemlist);
}
deduplicate_elemlist = removeDuplicates(elemlist);

/* format string delimiter with ',' */
StringInfoData expand_string;
Expand Down

0 comments on commit 5a6cac3

Please sign in to comment.