[libdvdcss-devel] [PATCH 31/47] ioctl: Initialize variable before use in ioctl_ReportAgid()
Diego Biurrun <[email protected]>
| Newsgroups | gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel