diff options
author | Mark Ryan <mark.d.ryan@intel.com> | 2012-12-05 15:25:33 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2012-12-05 16:18:11 +0100 |
commit | ca4ffbcca3482465fc7daa52ed87ebd0a4f14596 (patch) | |
tree | 0a374ddc9bc5bb259ad1c4b00bc6348c36c73b3b | |
parent | 6154207cda1929a200ad3bd23baa5cd7f892f64a (diff) | |
download | gupnp-av-ca4ffbcca3482465fc7daa52ed87ebd0a4f14596.tar.gz |
Fix an uninitialised variable error
The is_container variable is only initialised if node->name = "container",
otherwise it is uninitialised.
https://bugzilla.gnome.org/show_bug.cgi?id=689701
-rw-r--r-- | libgupnp-av/gupnp-didl-lite-writer.c | 2 |
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 8c0e52e..9ab0654 100644 --- a/libgupnp-av/gupnp-didl-lite-writer.c +++ b/libgupnp-av/gupnp-didl-lite-writer.c @@ -215,7 +215,7 @@ filter_node (xmlNode *node, xmlNode *child; GList *forbidden = NULL; GList *l; - gboolean is_container; + gboolean is_container = FALSE; const char *container_class = NULL; if (!tags_only) |