From 35bcadde7ae2d0a51a732408855c7788e704d9f8 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Tue, 2 Feb 2010 13:41:34 +0000 Subject: [PATCH] avoid 'invalid' value in #iq{} record SVN Revision: 2954 --- src/jlib.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jlib.erl b/src/jlib.erl index 5df54d6dd..ce2427fa1 100644 --- a/src/jlib.erl +++ b/src/jlib.erl @@ -407,16 +407,14 @@ iq_info_internal({xmlelement, Name, Attrs, Els}, Filter) when Name == "iq" -> [NonErrorEl] -> xml:get_tag_attr_s("xmlns", NonErrorEl); _ -> - invalid + "" end, FilteredEls}; _ -> - {invalid, []} + {"", []} end, if XMLNS == "", Class == request -> invalid; - XMLNS == invalid -> - invalid; true -> #iq{id = ID, type = Type1,