diff options
author | wm4 <wm4@nowhere> | 2014-11-21 09:58:09 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-21 09:58:09 +0100 |
commit | e082c2c3dfced1cd20d7c1cb7ee7a661dffc8686 (patch) | |
tree | 9f8d1cdf0cbe5db4076f8d7e7656368db01f0b2e /input/keycodes.c | |
parent | 38f4ec69d11979f2d7734ecf176130814f7f9891 (diff) | |
download | mpv-e082c2c3dfced1cd20d7c1cb7ee7a661dffc8686.tar.bz2 mpv-e082c2c3dfced1cd20d7c1cb7ee7a661dffc8686.tar.xz |
Remove some unneeded NULL checks
Found by Coverity; also see commit 85fb2af3.
Diffstat (limited to 'input/keycodes.c')
-rw-r--r-- | input/keycodes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/keycodes.c b/input/keycodes.c index 5108a8beae..e5ca0bf77d 100644 --- a/input/keycodes.c +++ b/input/keycodes.c @@ -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]; |