summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/v4l2_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/lib/v4l2_driver.c')
-rw-r--r--v4l2-apps/lib/v4l2_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/v4l2-apps/lib/v4l2_driver.c b/v4l2-apps/lib/v4l2_driver.c
index 24ed2846b..3f7a1188f 100644
--- a/v4l2-apps/lib/v4l2_driver.c
+++ b/v4l2-apps/lib/v4l2_driver.c
@@ -211,7 +211,7 @@ int v4l2_enum_stds (struct v4l2_driver *drv)
p->index=i;
ok=xioctl(drv->fd,VIDIOC_ENUMSTD,p);
if (ok<0) {
- ok=errno;
+ ok=-errno;
free(p);
break;
}