~ubuntu-branches/ubuntu/utopic/zoneminder/utopic-proposed

« back to all changes in this revision

Viewing changes to src/zmfix.cpp

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2014-01-19 22:07:18 UTC
  • mfrom: (15.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20140119220718-idkyepfw1zvr6cm2
Tags: 1.26.5-1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/control: Add libnet-sftp-foreign-perl to dependencies.
  - debian/control: Apache2 transition.
  - Port from ffmpeg to avconv.
  - Still build-depending on libgnutls-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// ZoneMinder Video Device Fixer, $Date: 2011-06-21 10:19:10 +0100 (Tue, 21 Jun 2011) $, $Revision: 3459 $
 
2
// ZoneMinder Video Device Fixer, $Date$, $Revision$
3
3
// Copyright (C) 2001-2008 Philip Coombes
4
4
// 
5
5
// This program is free software; you can redistribute it and/or
132
132
 
133
133
int main( int argc, char *argv[] )
134
134
{
 
135
    self = argv[0];
 
136
 
135
137
    zmLoadConfig();
136
138
 
137
139
    logInit( "zmfix" );
166
168
    // Yadda yadda
167
169
    mysql_free_result( result );
168
170
 
169
 
    snprintf( sql, sizeof(sql), "select distinct ControlDevice from Monitors where not isnull(ControlDevice)" );
 
171
    snprintf( sql, sizeof(sql), "select distinct ControlDevice from Monitors where not isEmpty(ControlDevice)" );
170
172
    if ( mysql_query( &dbconn, sql ) )
171
173
    {
172
174
        Error( "Can't run query: %s", mysql_error( &dbconn ) );