build: fix gcc warnings
This commit is contained in:
parent
e1777b900f
commit
bc2b19ab70
2 changed files with 6 additions and 1 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 5225f857c44ced8e61e65b25892a0c8ab015250c
|
||||
Subproject commit f20b3301c67b61f7dba30aa8b5de4e1a31d67f4b
|
||||
|
|
@ -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