mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
Remove some unneeded NULL checks
Found by Coverity; also see commit 85fb2af3.
This commit is contained in:
@@ -305,7 +305,7 @@ int mp_input_get_keys_from_string(char *name, int max_num_keys,
|
||||
|
||||
ptr = name;
|
||||
n = 0;
|
||||
for (end = strchr(ptr, '-'); ptr != NULL; end = strchr(ptr, '-')) {
|
||||
for (end = strchr(ptr, '-'); ; end = strchr(ptr, '-')) {
|
||||
if (end && end[1] != '\0') {
|
||||
if (end[1] == '-')
|
||||
end = &end[1];
|
||||
|
||||
Reference in New Issue
Block a user