summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2012-02-13 11:01:02 +0200
committerJens Georg <mail@jensge.org>2012-02-13 11:01:02 +0200
commit10201e9ba59b2ea60bcb6fffce3c6d385d5caf75 (patch)
tree24e2d2823b3142ecf858bbbc744e722228cbd110
parenta798a6e0c00fa75d108ca5baaea5d29f479f204f (diff)
downloadgupnp-av-10201e9ba59b2ea60bcb6fffce3c6d385d5caf75.tar.gz
Fix possible dereference of NULL namespace
-rw-r--r--libgupnp-av/gupnp-didl-lite-writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgupnp-av/gupnp-didl-lite-writer.c b/libgupnp-av/gupnp-didl-lite-writer.c
index 22112dd..7e01541 100644
--- a/libgupnp-av/gupnp-didl-lite-writer.c
+++ b/libgupnp-av/gupnp-didl-lite-writer.c
@@ -151,7 +151,7 @@ is_container_standard_prop (const char *name,
const char *upnp_class)
{
return g_strcmp0 (upnp_class, "object.container.storageFolder") == 0 &&
- strcmp (namespace, "upnp") == 0 &&
+ g_strcmp0 (namespace, "upnp") == 0 &&
strcmp (name, "storageUsed") == 0;
}