summaryrefslogtreecommitdiffstats
path: root/waftools/fragments
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-11 16:12:48 +0200
committerwm4 <wm4@nowhere>2014-05-11 16:41:02 +0200
commit0d916c7f96e3ade4ea3dd19041e3f157ac2ef423 (patch)
tree5fdc084010b0e6e7612fe91a741b605c6922578b /waftools/fragments
parent194e22118124b1c10b2634104a98fb2c57eb8981 (diff)
downloadmpv-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/fragments')
-rw-r--r--waftools/fragments/pvr.c2
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;
}