From: Holger Weiss Date: Tue, 29 Apr 2014 09:41:24 +0000 (+0200) Subject: Avoid #state.lang type errors in corner cases X-Git-Tag: 14.05~55^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb2c8b59f805063e167c0ece406963a416bc50f9;p=ejabberd Avoid #state.lang type errors in corner cases If #state.lang is used before being initialized to some binary string, the translation code would crash. --- diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 33d76b07c..5d8a7bb07 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -107,7 +107,7 @@ auth_module = unknown, ip, aux_fields = [], - lang}). + lang = <<"">>}). %-define(DBGFSM, true).