ref: 665cacf448bfc9f5f3c81e5a37fa2c533071b418
parent: fe619aa0c9502670af84815b99a57b0449b9c184
author: Diego Biurrun <diego@biurrun.de>
date: Tue Oct 28 14:05:47 EDT 2014
ioctl: Initialize variable before use in ioctl_ReportAgid() This silences a complaint from the MSVC code analyzer.
--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -616,7 +616,7 @@
if( WIN2K ) /* NT/2k/XP */
{
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;