[mythtv-commits] mythtv commit: r17853 by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Jul 18 02:49:51 UTC 2008


      Author: cpinkham
        Date: 2008-07-18 02:49:51 +0000 (Fri, 18 Jul 2008)
New Revision: 17853
   Changeset: http://cvs.mythtv.org/trac/changeset/17853

Modified:

   trunk/mythtv/libs/libmyth/mythcontext.cpp

Log:

In MythContext::PromptForSchemaUpgrade(), if we created the temporary main
window and later EndTempWindow(), then we need to reset the database
connection info using SetDatabaseParams() because the creation of the temp
window set the hostname to the empty string.

This was causing segfaults in mysql_next_result during ~MSqlQuery() in some
DB updates if you were upgrading using mythtv-setup or mythfrontend.

This doesn't solve the real bug, but prevents it from occurring.  The bug
occurs after we create a MSqlQuery while the hostname is empty and then later
destroy that that MSqlQuery.






More information about the mythtv-commits mailing list