mirror of
https://github.com/postgres/postgres.git
synced 2026-02-20 16:30:40 -05:00
Fix incorrect iteration type in extension_file_exists()
Commit f3c9e341cd changed the type of objects in the List that
get_extension_control_directories() returns, from "char *" to
"ExtensionLocation *", but missed adjusting this one caller.
Author: Chao Li <lic@highgo.com>
Discussion: https://www.postgresql.org/message-id/362EA9B3-589B-475A-A16E-F10C30426E28@gmail.com
This commit is contained in:
parent
c5dc75479b
commit
18f0afb2a6
1 changed files with 3 additions and 3 deletions
|
|
@ -2686,9 +2686,9 @@ extension_file_exists(const char *extensionName)
|
|||
|
||||
locations = get_extension_control_directories();
|
||||
|
||||
foreach_ptr(char, location, locations)
|
||||
foreach_ptr(ExtensionLocation, location, locations)
|
||||
{
|
||||
dir = AllocateDir(location);
|
||||
dir = AllocateDir(location->loc);
|
||||
|
||||
/*
|
||||
* If the control directory doesn't exist, we want to silently return
|
||||
|
|
@ -2700,7 +2700,7 @@ extension_file_exists(const char *extensionName)
|
|||
}
|
||||
else
|
||||
{
|
||||
while ((de = ReadDir(dir, location)) != NULL)
|
||||
while ((de = ReadDir(dir, location->loc)) != NULL)
|
||||
{
|
||||
char *extname;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue