aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/v4l2-compliance/v4l2-compliance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 3ccd533d..5497caa5 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -651,7 +651,8 @@ int main(int argc, char **argv)
/* Final test report */
test_close(node.fd);
- test_close(node.node2->fd);
+ if (node.node2)
+ test_close(node.node2->fd);
printf("Total: %d Succeeded: %d Failed: %d Warnings: %d\n",
tests_total, tests_ok, tests_total - tests_ok, warnings);
exit(app_result);

Privacy Policy