[PATCH edid-decode 1/9] Fix unitialized output fd

Arnaud Vrac rawoul at gmail.com
Fri Jul 8 14:09:34 UTC 2016


From: Arnaud Vrac <avrac at freebox.fr>

---
 edid-decode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/edid-decode.c b/edid-decode.c
index 631b223..fa851b4 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -1563,6 +1563,7 @@ int main(int argc, char **argv)
 		perror(argv[1]);
 		return 1;
 	    }
+	    ofd = -1;
 	    break;
 	case 3:
 	    if ((fd = open(argv[1], O_RDONLY)) == -1) {
-- 
2.7.4



More information about the xorg-devel mailing list