summaryrefslogtreecommitdiffstats
path: root/m_config.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-04-28 09:36:00 +0200
committerUoti Urpala <uau@mplayer2.org>2011-05-02 00:46:48 +0300
commit6506d4ad84eac67e69437def2c8ee69fcfc14ed5 (patch)
tree255e7f58b809a9bc7377047533cfb19399ce4ffd /m_config.c
parent7e65428712beacd416dc3410c52f22ebfd3b4c53 (diff)
downloadmpv-6506d4ad84eac67e69437def2c8ee69fcfc14ed5.tar.bz2
mpv-6506d4ad84eac67e69437def2c8ee69fcfc14ed5.tar.xz
cleanup: remove more warnings
Diffstat (limited to 'm_config.c')
-rw-r--r--m_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/m_config.c b/m_config.c
index 0f5151aed5..914bfcecb7 100644
--- a/m_config.c
+++ b/m_config.c
@@ -308,10 +308,10 @@ m_config_add_option(m_config_t *config, const m_option_t *arg, const char* prefi
co->opt = arg;
// Fill in the full name
- if(prefix && strlen(prefix) > 0) {
+ if (prefix && *prefix)
co->name = talloc_asprintf(co, "%s:%s", prefix, arg->name);
- } else
- co->name = arg->name;
+ else
+ co->name = (char *)arg->name;
// Option with children -> add them
if(arg->type->flags & M_OPT_TYPE_HAS_CHILD) {