Put dbrow and fetch into a scope so that it goes away quick
This commit is contained in:
parent
0343642c42
commit
b6fcadf31b
|
@ -97,10 +97,12 @@ Event::Event(
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int state_id = 0;
|
unsigned int state_id = 0;
|
||||||
|
{
|
||||||
zmDbRow dbrow;
|
zmDbRow dbrow;
|
||||||
if ( dbrow.fetch("SELECT Id FROM States WHERE IsActive=1") ) {
|
if (dbrow.fetch("SELECT Id FROM States WHERE IsActive=1")) {
|
||||||
state_id = atoi(dbrow[0]);
|
state_id = atoi(dbrow[0]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Copy it in case opening the mp4 doesn't work we can set it to another value
|
// Copy it in case opening the mp4 doesn't work we can set it to another value
|
||||||
save_jpegs = monitor->GetOptSaveJPEGs();
|
save_jpegs = monitor->GetOptSaveJPEGs();
|
||||||
|
|
Loading…
Reference in New Issue