libfreerdp-utils/args: fix wrong argument index for plugin name.

This commit is contained in:
Vic Lee 2011-08-02 13:15:25 +08:00
parent 2d5e6fa255
commit 05e6d857af

View File

@ -271,8 +271,8 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
}
else if (strcmp("--plugin", argv[index]) == 0)
{
t = index;
index++;
t = index;
if (index == argc)
{
printf("missing plugin name\n");