Skip to contentSkip to conversation

v4l-utils-1.0.0 bug report

DISCUSSION David Binderman 1 participant 1 message Dec 12, 2013 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello there,

I just ran the static analysis tool "cppcheck" over the source code of v4l-utils-1.0.0. It said many things, including

1. [rds-saa6588.c:119]: (style) Expression '(X & 0x8) == 0x1' is always false.

Source code is

    if (1 == (b[0] & 0x08)) {

Maybe the programmer intended

    if (0 != (b[0] & 0x08)) {

2.[rds-saa6588.c:122]: (style) Expression '(X & 0x4) == 0x1' is always false.

Source code is

   if (1 == (b[0] & 0x04)) {

Duplicate.

Regards

David Binderman