mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -3,5 +3,5 @@
|
||||
int main(void)
|
||||
{
|
||||
struct v4l2_ext_controls ext;
|
||||
return ext.controls->value;
|
||||
return !!&ext.controls->value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user