summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-18 23:23:18 +0100
committerDudemanguy <random342@airmail.cc>2023-11-18 23:55:28 +0000
commit7d7276e384d2e0076d31b46c47ec71a9eea24b2c (patch)
tree3b79892ba5e1ccb0966f0db9e2fb55e23b6f4b5e /common
parentfd0e2af1f20d232d49d9171f3ab0945e36053e00 (diff)
downloadmpv-7d7276e384d2e0076d31b46c47ec71a9eea24b2c.tar.bz2
mpv-7d7276e384d2e0076d31b46c47ec71a9eea24b2c.tar.xz
common/msg: remove redundant check
It is already strcmp above, so cannot be NULL.
Diffstat (limited to 'common')
-rw-r--r--common/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/msg.c b/common/msg.c
index 03219c61fd..b14bd5ac24 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -717,7 +717,7 @@ static bool check_new_path(struct mpv_global *global, char *opt,
if (strcmp(old_path, new_path) != 0) {
talloc_free(*current_path);
*current_path = NULL;
- if (new_path && new_path[0])
+ if (new_path[0])
*current_path = talloc_strdup(NULL, new_path);
res = true;
}