From: Adam Sutton Date: Tue, 10 Sep 2013 16:23:08 +0000 (+0100) Subject: transcoder: check for language config is NULL X-Git-Tag: v4.1~2541 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee7937f76a044fe4bf9983ed4203f55112ef9377;p=thirdparty%2Ftvheadend.git transcoder: check for language config is NULL --- diff --git a/src/webui/webui.c b/src/webui/webui.c index dc79ee833..6d3889843 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -109,7 +109,7 @@ http_get_transcoder_properties(struct http_arg_list *args, if ((s = http_arg_get(args, "language"))) strncpy(props->tp_language, s, 3); else - strncpy(props->tp_language, config_get_language(), 3); + strncpy(props->tp_language, config_get_language() ?: "", 3); if ((s = http_arg_get(args, "vcodec"))) props->tp_vcodec = streaming_component_txt2type(s);