]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
transcoder: check for language config is NULL
authorAdam Sutton <dev@adamsutton.me.uk>
Tue, 10 Sep 2013 16:23:08 +0000 (17:23 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 10 Sep 2013 16:23:08 +0000 (17:23 +0100)
src/webui/webui.c

index dc79ee8334b3ad12041bdbb4e89a785bfefc0526..6d3889843e0812175c374e0e349e24410451b556 100644 (file)
@@ -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);