diff options
author | wm4 <wm4@nowhere> | 2014-05-11 16:12:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-11 16:41:02 +0200 |
commit | 0d916c7f96e3ade4ea3dd19041e3f157ac2ef423 (patch) | |
tree | 5fdc084010b0e6e7612fe91a741b605c6922578b /waftools | |
parent | 194e22118124b1c10b2634104a98fb2c57eb8981 (diff) | |
download | mpv-0d916c7f96e3ade4ea3dd19041e3f157ac2ef423.tar.bz2 mpv-0d916c7f96e3ade4ea3dd19041e3f157ac2ef423.tar.xz |
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.
Diffstat (limited to 'waftools')
-rw-r--r-- | waftools/fragments/pvr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waftools/fragments/pvr.c b/waftools/fragments/pvr.c index be301e11e5..5b8555f4e3 100644 --- a/waftools/fragments/pvr.c +++ b/waftools/fragments/pvr.c @@ -3,5 +3,5 @@ int main(void) { struct v4l2_ext_controls ext; - return ext.controls->value; + return !!&ext.controls->value; } |