From 7d7276e384d2e0076d31b46c47ec71a9eea24b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 18 Nov 2023 23:23:18 +0100 Subject: [PATCH] common/msg: remove redundant check It is already strcmp above, so cannot be NULL. --- common/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }