[grilo-plugins] upnp: return NULL if there are no tags
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] upnp: return NULL if there are no tags
- Date: Mon, 12 May 2014 22:29:46 +0000 (UTC)
commit 97d67f73ad6cae4963bb9796be53d3566ce70e75
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Mon May 12 22:28:41 2014 +0000
upnp: return NULL if there are no tags
If the source does not have tags, let's return NULL instead of an array with a
NULL string.
src/upnp/grl-upnp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/upnp/grl-upnp.c b/src/upnp/grl-upnp.c
index 4288925..024bfeb 100644
--- a/src/upnp/grl-upnp.c
+++ b/src/upnp/grl-upnp.c
@@ -247,7 +247,7 @@ grl_upnp_source_new (const gchar *source_id,
"source-name", name,
"source-desc", source_desc,
"source-icon", icon,
- "source-tags", tags,
+ "source-tags", tags[0]? tags: NULL,
NULL);
source->priv->upnp_name = g_strdup (name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]