Skip to content

Commit 9a07806

Browse files
committed
fix build failure
1 parent 7cc92a7 commit 9a07806

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

qt-ozwdaemon/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,9 @@ int main(int argc, char *argv[])
289289
bppath = QStandardPaths::standardLocations(QStandardPaths::TempLocation).at(0);
290290
qInfo() << "Using BreakPad - Crash Directory: " << bppath;
291291
/* ensure path exists */
292-
if (!QDir::exists(bppath)) {
293-
QDir::mkpath(bppath);
292+
QDir dir(bppath);
293+
if (!dir.exists()) {
294+
dir.mkpath(bppath);
294295
}
295296
google_breakpad::MinidumpDescriptor descriptor(bppath.toStdString());
296297
google_breakpad::ExceptionHandler eh(descriptor, NULL, dumpCallback, static_cast<void *>(&daemon), true, -1);

0 commit comments

Comments
 (0)