1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -05:00

Consistently set errstrp

This commit is contained in:
Moritz Grimm 2015-05-21 01:24:09 +02:00
parent d1ae8fa17d
commit dcb5303b4b

View File

@ -110,7 +110,7 @@ cfg_encoder_set_format_str(struct cfg_encoder *e, const char *fmt_str,
{ {
enum cfg_stream_format fmt; enum cfg_stream_format fmt;
if (!fmt_str) { if (!fmt_str || !fmt_str[0]) {
if (errstrp) if (errstrp)
*errstrp = "empty"; *errstrp = "empty";
return (-1); return (-1);