summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/ftp.cc2
-rw-r--r--methods/http.cc2
-rw-r--r--methods/rsh.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index 16236232a..aa0c0692c 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -1115,7 +1115,7 @@ bool FtpMethod::Fetch(FetchItem *Itm)
URIStart(Res);
FailFile = Itm->DestFile;
- FailFile.c_str(); // Make sure we don't do a malloc in the signal handler
+ (void)(FailFile.c_str()); // Make sure we don't do a malloc in the signal handler
FailFd = Fd.Fd();
bool Missing;
diff --git a/methods/http.cc b/methods/http.cc
index 2a5ab2cd2..b4519a890 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1008,7 +1008,7 @@ BaseHttpMethod::DealWithHeadersResult HttpMethod::DealWithHeaders(FetchResult &R
return ERROR_NOT_FROM_SERVER;
FailFile = Queue->DestFile;
- FailFile.c_str(); // Make sure we don't do a malloc in the signal handler
+ (void)(FailFile.c_str()); // Make sure we don't do a malloc in the signal handler
FailFd = Req.File.Fd();
FailTime = Req.Date;
diff --git a/methods/rsh.cc b/methods/rsh.cc
index 09d72cbc5..68407b062 100644
--- a/methods/rsh.cc
+++ b/methods/rsh.cc
@@ -501,7 +501,7 @@ bool RSHMethod::Fetch(FetchItem *Itm)
URIStart(Res);
FailFile = Itm->DestFile;
- FailFile.c_str(); // Make sure we don't do a malloc in the signal handler
+ (void)(FailFile.c_str()); // Make sure we don't do a malloc in the signal handler
FailFd = Fd.Fd();
bool Missing;