common/msg: remove redundant check

It is already strcmp above, so cannot be NULL.
This commit is contained in:
Kacper Michajłow 2023-11-18 23:23:18 +01:00 committed by Dudemanguy
parent fd0e2af1f2
commit 7d7276e384
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}