History

Remove some unneeded NULL checks

Found by Coverity; also see commit 85fb2af3.

wm4 committed 11 years ago

Commit e082c2c1 parent 38f4ec64 files · +22 −25Browse files

Showing the changes to input/keycodes.c (1 of 4 files). Show all

Unified · Split

input/keycodes.c+1−1
@@ -305,7 +305,7 @@ int mp_input_get_keys_from_string(char *name, int max_num_keys, · 304 unmodified lines
305305
306306 ptr = name;
307307 n = 0;
308− for (end = strchr(ptr, '-'); ptr != NULL; end = strchr(ptr, '-')) {
308+ for (end = strchr(ptr, '-'); ; end = strchr(ptr, '-')) {
309309 if (end && end[1] != '\0') {
310310 if (end[1] == '-')
311311 end = &end[1];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t