build: removed undefined behavior from PVR check

This shouldn't matter, but it's probably better if the code to check is
valid - otherwise an extremely clever compiler might fail to compile it,
and the feature would be misdetected. (Probably.)

Found by cppcheck.
This commit is contained in:
wm4 2014-05-11 16:12:48 +02:00
parent 7b1f12adba
commit 461198e149
1 changed files with 1 additions and 1 deletions

View File

@ -3,5 +3,5 @@
int main(void)
{
struct v4l2_ext_controls ext;
return ext.controls->value;
return !!&ext.controls->value;
}