1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Test tabrest.cpp fix

This commit is contained in:
Olivier Bertrand
2021-04-06 14:16:38 +02:00
parent c030f4c625
commit d1b6cad028

View File

@@ -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);