diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2021-04-06 14:16:38 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2021-04-08 17:35:16 +0200 |
commit | d1b6cad0287a27e63d9ee57eb1862a70ba98f091 (patch) | |
tree | 3cfbf1e9a5edaaf354d174b49506bf919bba1895 | |
parent | c030f4c625b90baa17cb8c73a018a327aa12b557 (diff) | |
download | mariadb-git-d1b6cad0287a27e63d9ee57eb1862a70ba98f091.tar.gz |
Test tabrest.cpp fix
-rw-r--r-- | storage/connect/tabrest.cpp | 3 |
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); |