fix NULL in linkedMonitors column

This commit is contained in:
Isaac Connor 2016-06-09 13:06:57 -04:00
parent d9f2911f0d
commit fad1d95011
1 changed files with 1 additions and 1 deletions

View File

@ -2785,7 +2785,7 @@ Monitor *Monitor::Load( unsigned int p_id, bool load_zones, Purpose purpose ) {
std::string type = dbrow[col]; col++;
int function = atoi(dbrow[col]); col++;
int enabled = atoi(dbrow[col]); col++;
std::string linked_monitors = dbrow[col]; col++;
std::string linked_monitors = dbrow[col] ? dbrow[col] : ""; col++;
std::string device = dbrow[col]; col++;
int channel = atoi(dbrow[col]); col++;