Thomas Jarosch | 5 Oct 2011 22:14
Favicon

[PATCH 1/2] Don't close file descriptor twice

Detected by "cppcheck"

Please CC: comments.

Signed-off-by: Thomas Jarosch <thomas.jarosch <at> intra2net.com>
---
 hald/linux/probing/probe-video4linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hald/linux/probing/probe-video4linux.c b/hald/linux/probing/probe-video4linux.c
index b055720..9faf009 100644
--- a/hald/linux/probing/probe-video4linux.c
+++ b/hald/linux/probing/probe-video4linux.c
 <at>  <at>  -147,6 +147,7  <at>  <at>  main (int argc, char *argv[])
 	libhal_device_free_changeset (cset);

 	close (fd);
+	fd = 0;

 	ret = 0;

--

-- 
1.7.4.4


Gmane