From d1b6cad0287a27e63d9ee57eb1862a70ba98f091 Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Tue, 6 Apr 2021 14:16:38 +0200 Subject: Test tabrest.cpp fix --- storage/connect/tabrest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'storage/connect') 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); -- cgit v1.2.1