mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-24 11:50:21 +00:00
common/msg: remove redundant check
It is already strcmp above, so cannot be NULL.
This commit is contained in:
committed by
Dudemanguy
parent
fd0e2af1f2
commit
7d7276e384
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user