rdpdr/disk: fixed command line segfault

when incomplete commands are given for disk redirection freerdp crashed.
fixed #793
This commit is contained in:
Bernhard Miklautz 2012-12-03 17:29:42 +01:00
parent c9d4abf1a5
commit 9f648ca29f
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ int DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
name = (char*)pEntryPoints->plugin_data->data[1];
path = (char*)pEntryPoints->plugin_data->data[2];
if (name[0] && path[0])
if (name && name[0] && path && path[0])
{
disk = xnew(DISK_DEVICE);