[channels,rdpdr] fix uninitialized warnings

This commit is contained in:
akallabeth 2024-09-15 09:58:27 +02:00
parent f7726ed7b6
commit a4a7019f97
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -514,19 +514,19 @@ typedef struct
*/
static UINT handle_hotplug(rdpdrPlugin* rdpdr)
{
struct dirent* pDirent;
DIR* pDir;
char fullpath[PATH_MAX];
struct dirent* pDirent = NULL;
char fullpath[PATH_MAX] = { 0 };
char* szdir = (char*)"/Volumes";
struct stat buf;
hotplug_dev dev_array[MAX_USB_DEVICES];
int count;
DEVICE_DRIVE_EXT* device_ext;
struct stat buf = { 0 };
hotplug_dev dev_array[MAX_USB_DEVICES] = { 0 };
int count = 0;
DEVICE_DRIVE_EXT* device_ext = NULL;
ULONG_PTR* keys = NULL;
int size = 0;
UINT error;
UINT error = ERROR_INTERNAL_ERROR;
UINT32 ids[1];
pDir = opendir(szdir);
DIR* pDir = opendir(szdir);
if (pDir == NULL)
{