build: fix gcc warnings
This commit is contained in:
parent
e1777b900f
commit
bc2b19ab70
2 changed files with 6 additions and 1 deletions
|
|
@ -1313,6 +1313,11 @@ void BotGraph::syncCollectOnline () {
|
|||
}
|
||||
String localFile = plat.tmpfname ();
|
||||
|
||||
// no temp file, no fun
|
||||
if (localFile.empty ()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// don't forget remove temporary file
|
||||
auto unlinkTemporary = [&] () {
|
||||
if (plat.fileExists (localFile.chars ())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue