Opened 7 years ago

Closed 7 years ago

#13599 closed bug (fixed)

[Patch] media/BufferConsumer.cpp: Fix ordered comparison between pointer and zero

Reported by: mt Owned by: Barrett
Priority: normal Milestone: Unscheduled
Component: Kits/Media Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Since 'group' is pointer, I think comparison at line 272 may be replaced to null pointer check.

http://cgit.haiku-os.org/haiku/tree/src/kits/media/BufferConsumer.cpp#n272

/home/haiku/haiku/haiku/src/kits/media/BufferConsumer.cpp:272:12: error: ordered comparison between pointer and zero ('BBufferGroup *' and 'int')
        if (group > 0) {
            ~~~~~ ^ ~

Attachments (1)

0031-BufferConsumer.cpp-Fix-ordered-comparison-between-po.patch (774 bytes ) - added by mt 7 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by mt, 7 years ago

patch: 01

comment:3 by pulkomandy, 7 years ago

Resolution: fixed
Status: newclosed

Applied in hrev51281. Thanks!

Note: See TracTickets for help on using tickets.