[mythtv-commits] Ticket #10478: Commercial flagging array initialization issue

MythTV noreply at mythtv.org
Sat Mar 24 09:39:59 UTC 2012


#10478: Commercial flagging array initialization issue
-------------------------------------------------+-------------------------
 Reporter:  Gary Buhrmaster <gary.buhrmaster@…>  |          Owner:
     Type:  Patch - Bug Fix                      |  cpinkham
 Priority:  minor                                |         Status:  closed
Component:  MythTV - Mythcommflag                |      Milestone:  0.25
 Severity:  medium                               |        Version:  Master
 Keywords:                                       |  Head
                                                 |     Resolution:  fixed
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------

Comment (by Gary Buhrmaster <gary.buhrmaster@…>):

 The patch as modified still will only zero the first int of sc_histogram
 due to the (presumably) extra sizeof operand.

 Did you perhaps mean to write:
     memset(sc_histogram, 0, (seconds+1)*sizeof(int));
 rather than:
     memset(sc_histogram, 0, sizeof((seconds+1)*sizeof(int)));

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10478#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list