Ticket #4323: uninit.patch

File uninit.patch, 509 bytes (added by Mike Rice <mikerice1969@…>, 13 years ago)
  • mythmedia.cpp

     
    191191    QMap<uint, uint>::const_iterator cit = media_cnts.begin();
    192192    for (; cit != media_cnts.end(); ++cit)
    193193    {
    194         for (uint key, j = 0; key != MEDIATYPE_END; j++)
     194        for (uint key = 0, j = 0; key != MEDIATYPE_END; j++)
    195195        {
    196196            if ((key = 1 << j) & cit.key())
    197197                media_cnt[key] += *cit;