summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2020-07-25 21:05:44 +0200
committerJens Georg <mail@jensge.org>2020-07-29 22:44:37 +0200
commit0ed37b3d70eef65723ae8560289a5d5b62e26cc0 (patch)
tree64783102247686fa58b93cb16cc05a48b0e9cb18
parent5e5cccef4c734b30b8b63db2677a8fc6f94e9f6c (diff)
downloadgupnp-tools-0ed37b3d70eef65723ae8560289a5d5b62e26cc0.tar.gz
network-light: Fix device creation
-rw-r--r--src/network-light/upnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network-light/upnp.c b/src/network-light/upnp.c
index e5d593e..1b5dadf 100644
--- a/src/network-light/upnp.c
+++ b/src/network-light/upnp.c
@@ -409,9 +409,9 @@ static void init_uuid (void)
char *udn;
uuid = gupnp_get_uuid ();
+ const xmlDoc *xml_doc = gupnp_xml_doc_get_doc (doc);
- uuid_node = xml_util_get_element ((xmlNode *) doc,
- gupnp_xml_doc_get_doc (doc),
+ uuid_node = xml_util_get_element ((xmlNode *) xml_doc,
"root",
"device",
"UDN",