mirror of https://github.com/mpv-player/mpv
common/msg: remove redundant check
It is already strcmp above, so cannot be NULL.
This commit is contained in:
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue