D-Bus server: avoid potential segfault
Klocwork warned about using a NULL starttime pointer in the case that the transport is unknown. Not sure whether this can actually happen at the moment, fix it anyway.
This commit is contained in:
parent
7a1278dae1
commit
1bd0d59703
|
@ -311,7 +311,7 @@ void AutoSyncManager::schedule(const std::string &reason)
|
|||
SE_LOG_DEBUG(NULL, NULL, "auto sync: %s: ready to run via %s (transport present for %lds > %ds auto sync delay)",
|
||||
configName.c_str(),
|
||||
urlinfo.second.c_str(),
|
||||
(long)(*starttime - now).seconds(),
|
||||
starttime ? (long)(*starttime - now).seconds() : -1,
|
||||
task->m_delay);
|
||||
readyURL = urlinfo.second;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue