summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-10-13 13:49:28 (GMT)
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-10-13 13:50:23 (GMT)
commit2b9d9a1371af12ee95235a8cbad36747372abcdd (patch)
treedd954f501552b074040f818222e97c2d478db216
parent3c43751dc90e4cdb08f57f48e2a8e6adf715ed8e (diff)
downloadwocky-2b9d9a1371af12ee95235a8cbad36747372abcdd.tar.gz
wocky-2b9d9a1371af12ee95235a8cbad36747372abcdd.tar.xz
caps-hash: don't bail on hashing if there's no FORM_TYPE
Fixes: fd.o#41719 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--wocky/wocky-caps-hash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wocky/wocky-caps-hash.c b/wocky/wocky-caps-hash.c
index bf31082..aa20d08 100644
--- a/wocky/wocky-caps-hash.c
+++ b/wocky/wocky-caps-hash.c
@@ -185,8 +185,9 @@ wocky_caps_hash_compute_from_lists (
if (field == NULL)
{
- DEBUG ("Data form is missing FORM_TYPE field");
- goto cleanup;
+ DEBUG ("Data form is missing FORM_TYPE field; ignoring form and "
+ "moving onto next one");
+ continue;
}
form_name = g_value_get_string (field->default_value);