From 055ba3c4b2ab65d30b72f052a8fa6c73d2073a40 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 6 Sep 2014 23:34:49 +0100 Subject: Fix option handling for room config form parsing --- src/xmpp/form.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/xmpp') diff --git a/src/xmpp/form.c b/src/xmpp/form.c index ca798c29..43eb7503 100644 --- a/src/xmpp/form.c +++ b/src/xmpp/form.c @@ -167,8 +167,9 @@ form_create(xmpp_stanza_t * const form_stanza) // handle repeated field children xmpp_stanza_t *field_child = xmpp_stanza_get_children(field_stanza); - child_name = xmpp_stanza_get_name(field_child); while (field_child != NULL) { + child_name = xmpp_stanza_get_name(field_child); + // handle values if (g_strcmp0(child_name, "value") == 0) { char *value = xmpp_stanza_get_text(field_child); -- cgit 1.4.1-2-gfad0