Fix C4706 warning

This commit is contained in:
Geoffrey Merck 2019-04-21 08:41:23 +02:00 committed by GitHub
parent f7bf375bea
commit 387f875058
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,8 +66,8 @@ wxString CXLXHostsFileDownloader::Download(const wxString & xlxHostsFileURL)
return wxEmptyString;
}
wxInputStream* in = NULL;
if((in = http.GetInputStream(path)) && in->IsOk()) {
wxInputStream* in = http.GetInputStream(path);
if(in != NULL && in->IsOk()) {
wxFile file;
wxString xlxHostsFileName = wxFileName::CreateTempFileName(_T("XLX_Hosts_"), &file);
wxLogMessage(_T("Created temporary file %s"), xlxHostsFileName);