From 3e06a9b56fd642211cf92c5b6116b122cfe59d20 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 7 Oct 2011 09:19:41 +0200 Subject: [PATCH] libv4l2: Fix shadowing declaration of saved_err Signed-off-by: Hans de Goede --- lib/libv4l2/libv4l2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libv4l2/libv4l2.c b/lib/libv4l2/libv4l2.c index 366f8c5..977179a 100644 --- a/lib/libv4l2/libv4l2.c +++ b/lib/libv4l2/libv4l2.c @@ -1238,8 +1238,7 @@ no_capture_request: devices[index].dev_ops_priv, fd, VIDIOC_DQBUF, buf); if (result) { - int saved_err = errno; - + saved_err = errno; V4L2_LOG_ERR("dequeuing buf: %s\n", strerror(errno)); errno = saved_err; } -- 2.7.4