Fixed uninitialized values.
authorArmin Novak <armin.novak@thincast.com>
Tue, 1 Sep 2015 10:21:25 +0000 (12:21 +0200)
committerArmin Novak <armin.novak@thincast.com>
Tue, 1 Sep 2015 10:26:33 +0000 (12:26 +0200)
channels/rdpdr/client/rdpdr_main.c

index e5d3d13..e25b78e 100644 (file)
@@ -391,7 +391,9 @@ static UINT handle_hotplug(rdpdrPlugin* rdpdr)
        DEVICE_DRIVE_EXT *device_ext;
        ULONG_PTR *keys;
        UINT32 ids[1];
-       UINT error;
+       UINT error = 0;
+
+       memset(dev_array, 0, sizeof(dev_array));
 
        f = fopen("/proc/mounts", "r");
        if (f == NULL)