fix for uninitialized variable

This commit is contained in:
root
2016-12-11 20:37:26 +01:00
parent d6ce9bb126
commit 91177a2632
+4
View File
@@ -59,9 +59,13 @@ MainLoop::MainLoop(const struct options opt, Device *device, MessageMap* message
m_device->setListener(this);
if (opt.dumpFile[0]) {
m_dumpFile = new RotateFile(opt.dumpFile, opt.dumpSize);
} else {
m_dumpFile = NULL;
}
if (opt.logRawFile[0] && strcmp(opt.logRawFile, opt.logFile)!=0) {
m_logRawFile = new RotateFile(opt.logRawFile, opt.logRawSize, true);
} else {
m_logRawFile = NULL;
}
m_logRawEnabled = opt.logRaw;
// create BusHandler