summaryrefslogtreecommitdiff
path: root/storage/connect
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect')
-rw-r--r--storage/connect/tabrest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/connect/tabrest.cpp b/storage/connect/tabrest.cpp
index af1961c8314..d2b12ca1eb3 100644
--- a/storage/connect/tabrest.cpp
+++ b/storage/connect/tabrest.cpp
@@ -100,7 +100,6 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename)
{
char buf[512];
int rc = 0;
- FILE *pipe;
if (strchr(filename, '"')) {
strcpy(g->Message, "Invalid file name");
@@ -150,7 +149,7 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename)
strcpy(g->Message, "curl CLI not installed");
return 1;
} else
- close(f);
+ pclose(f);
pID = vfork();
sprintf(fn, "-o%s", filename);