Fix regression introduced in 0b7f9d4
This fixes problems with command line parsing.
This commit is contained in:
parent
121ea23595
commit
0615c13dbb
@ -547,14 +547,13 @@ static char** freerdp_command_line_parse_comma_separated_values_offset(char* lis
|
||||
char** t;
|
||||
|
||||
p = freerdp_command_line_parse_comma_separated_values(list, count);
|
||||
if (!p)
|
||||
return NULL;
|
||||
|
||||
t = (char**) realloc(p, sizeof(char*) * (*count + 1));
|
||||
if (!t)
|
||||
return NULL;
|
||||
p = t;
|
||||
MoveMemory(&p[1], p, sizeof(char*) * *count);
|
||||
if (count > 0)
|
||||
MoveMemory(&p[1], p, sizeof(char*) * *count);
|
||||
(*count)++;
|
||||
|
||||
return p;
|
||||
|
Loading…
Reference in New Issue
Block a user