summaryrefslogtreecommitdiff
path: root/libgupnp
diff options
context:
space:
mode:
authorEtienne Peron <etienne.peron@parrot.com>2014-06-30 11:28:02 +0200
committerJens Georg <mail@jensge.org>2014-07-18 21:13:30 +0200
commit1105badf8bb7dfaa468f7fe0f55e9076a95d3f68 (patch)
tree9b5ecae370ff2616de9ca56254ecf9d31749be36 /libgupnp
parente7a284dfa139b5b0be4944e43f75b61e39538259 (diff)
downloadgupnp-1105badf8bb7dfaa468f7fe0f55e9076a95d3f68.tar.gz
Allow actions without arguments
https://bugzilla.gnome.org/show_bug.cgi?id=733241
Diffstat (limited to 'libgupnp')
-rw-r--r--libgupnp/gupnp-service-introspection.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libgupnp/gupnp-service-introspection.c b/libgupnp/gupnp-service-introspection.c
index 4453495..492e7de 100644
--- a/libgupnp/gupnp-service-introspection.c
+++ b/libgupnp/gupnp-service-introspection.c
@@ -595,7 +595,6 @@ get_actions (xmlNode *list_element)
action_node;
action_node = action_node->next) {
GUPnPServiceActionInfo *action_info;
- GList *arguments;
char *name;
if (strcmp ("action", (char *) action_node->name) != 0)
@@ -606,16 +605,9 @@ get_actions (xmlNode *list_element)
if (!name)
continue;
- arguments = get_action_arguments (action_node);
- if (!arguments) {
- g_free (name);
-
- continue;
- }
-
action_info = g_slice_new0 (GUPnPServiceActionInfo);
action_info->name = name;
- action_info->arguments = arguments;
+ action_info->arguments = get_action_arguments (action_node);
actions = g_list_append (actions, action_info);
}