[libdvdcss-devel] [PATCH 31/47] ioctl: Initialize variable before use in ioctl_ReportAgid()

Diego Biurrun diego at biurrun.de
Wed Oct 29 21:33:31 CET 2014


This silences a complaint from the MSVC code analyzer.
---
 src/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ioctl.c b/src/ioctl.c
index 788282a..19b5a18 100644
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -543,7 +543,7 @@ int ioctl_ReportAgid( int i_fd, int *pi_agid )
 
 #elif defined( WIN32 )
     ULONG id;
-    DWORD tmp;
+    DWORD tmp = 0;
 
     i_ret = DeviceIoControl( (HANDLE) i_fd, IOCTL_DVD_START_SESSION,
                     &tmp, 4, &id, sizeof( id ), &tmp, NULL ) ? 0 : -1;
-- 
1.9.1



More information about the libdvdcss-devel mailing list