diff options
author | wm4 <wm4@nowhere> | 2014-05-11 16:12:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-24 16:39:46 +0200 |
commit | 461198e149ab40f4969d4c2bd6b3c0a9fffebe1b (patch) | |
tree | f594b3b9dec6d6de62389ea41b827fd33ad47b74 | |
parent | 7b1f12adba6cdd748c0a7e14fcbd5af427e2daa6 (diff) | |
download | mpv-461198e149ab40f4969d4c2bd6b3c0a9fffebe1b.tar.bz2 mpv-461198e149ab40f4969d4c2bd6b3c0a9fffebe1b.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.
-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; } |