Fixed API nonnull warning.

This commit is contained in:
Armin Novak 2014-11-16 23:56:51 +01:00
parent 51cc567dc6
commit e52fdc805a
1 changed files with 8 additions and 2 deletions

View File

@ -325,7 +325,10 @@ int freerdp_assistance_parse_connection_string2(rdpAssistanceFile* file)
p += length;
}
if (p)
p = strstr(p, "ID=\"");
else
p = _strdup("ID=\"");
if (p)
{
@ -348,7 +351,10 @@ int freerdp_assistance_parse_connection_string2(rdpAssistanceFile* file)
p += length;
}
if (p)
p = strstr(p, "<L P=\"");
else
p = _strdup("<L P=\"");
while (p)
{