diff options
author | Richard Hughes <richard@hughsie.com> | 2016-12-21 12:24:39 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-12-21 16:01:41 +0000 |
commit | 20f63a5a007d1f6038a2473b7b7901c59584fed1 (patch) | |
tree | d8d2388acd15ee1caad7e0eb7fc2eb67f5a3aa24 | |
parent | 1259b69240e442cebb58f866c80c852385399bdd (diff) | |
download | appstream-glib-20f63a5a007d1f6038a2473b7b7901c59584fed1.tar.gz |
trivial: Don't ever write an empty component ID value
-rw-r--r-- | libappstream-glib/as-app.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 6103127..77ec9a1 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -3992,7 +3992,8 @@ as_app_node_insert (AsApp *app, GNode *parent, AsNodeContext *ctx) } /* <id> */ - as_node_insert (node_app, "id", priv->id, 0, NULL); + if (priv->id != NULL) + as_node_insert (node_app, "id", priv->id, 0, NULL); /* <priority> */ if (priv->priority != 0) |