* Add a flag to tell ParseNameValue() to store empty XML elements.

This commit is contained in:
Justin Maggard
2012-07-10 21:12:10 +00:00
parent 074055aa4d
commit f0c7768533
8 changed files with 24 additions and 16 deletions

View File

@ -452,7 +452,7 @@ close:
if( !off )
return;
nread -= off - buf;
ParseNameValue(off, nread, &xml);
ParseNameValue(off, nread, &xml, 0);
model = GetValueFromNameValueList(&xml, "modelName");
serial = GetValueFromNameValueList(&xml, "serialNumber");
name = GetValueFromNameValueList(&xml, "friendlyName");