diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2013-02-25 09:35:13 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2013-02-25 09:40:05 +0000 |
commit | 3e17bf71aa47e7fe52c7053ec5cf44836cf5bd03 (patch) | |
tree | 1b331d2c237884c112086f6e52764147dee36b5b | |
parent | 099f5b1c7119d2d7d81970958fc8b8d19e3fc5e8 (diff) |
caps_hash_compute_from_lists: skip anonymous fields
https://bugs.freedesktop.org/show_bug.cgi?id=61433
-rw-r--r-- | wocky/wocky-caps-hash.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wocky/wocky-caps-hash.c b/wocky/wocky-caps-hash.c index 1c18293..7bd2c43 100644 --- a/wocky/wocky-caps-hash.c +++ b/wocky/wocky-caps-hash.c @@ -224,6 +224,14 @@ wocky_caps_hash_compute_from_lists ( field = l->data; + if (field->var == NULL) + { + DEBUG ("can't hash form '%s': it has an anonymous field", + form_name); + g_slist_free (fields); + goto cleanup; + } + if (!wocky_strdiff (field->var, "FORM_TYPE")) continue; |