Ticket #5286: mythtv-5286-check_for_empty_or_zero_to_call_InitializeDatabase.patch

File mythtv-5286-check_for_empty_or_zero_to_call_InitializeDatabase.patch, 381 bytes (added by sphery <mtdean@…>, 12 years ago)

Check for zero or empty to call InitializeDatabase?

  • libs/libmythtv/dbcheck.cpp

     
    614614        return true;
    615615    }
    616616
    617     if (dbver == "")
     617    if (dbver.isEmpty() || dbver == "0")
    618618    {
    619619        if (!InitializeDatabase())
    620620            return false;