mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
Only write out attributes that actually have a value.
This commit is contained in:
parent
8fdde14e77
commit
9ecb0eb822
@ -2517,7 +2517,8 @@ nsBookmarksService::WriteBookmarkProperties(nsIRDFDataSource *ds, nsOutputFileSt
|
||||
{
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIRDFNode> node;
|
||||
if (NS_SUCCEEDED(rv = ds->GetTarget(child, property, PR_TRUE, getter_AddRefs(node))))
|
||||
if (NS_SUCCEEDED(rv = ds->GetTarget(child, property, PR_TRUE, getter_AddRefs(node)))
|
||||
&& (rv != NS_RDF_NO_VALUE))
|
||||
{
|
||||
nsAutoString literalString;
|
||||
if (NS_SUCCEEDED(rv = GetTextForNode(node, literalString)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user