Merge pull request #95 from knnniggett/patch-10

Fix "Can't stat : No such file or directory" message
This commit is contained in:
Kyle Johnson 2013-08-30 18:48:48 -07:00
commit c9dce2363b
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ int main( int argc, char *argv[] )
// Yadda yadda
mysql_free_result( result );
snprintf( sql, sizeof(sql), "select distinct ControlDevice from Monitors where not isnull(ControlDevice)" );
snprintf( sql, sizeof(sql), "select distinct ControlDevice from Monitors where not isEmpty(ControlDevice)" );
if ( mysql_query( &dbconn, sql ) )
{
Error( "Can't run query: %s", mysql_error( &dbconn ) );