Remove unnecessary parentheses and an unnecessary free() of a NULL pointer.
(Thanks, Simon!) Fixes Bugzilla #2881.
parent
80ba854749
commit
a309755961
|
@ -288,8 +288,7 @@ MaybeAddDevice(const char *path)
|
|||
}
|
||||
|
||||
item->fname = SDL_strdup(path);
|
||||
if ( (item->fname == NULL) ) {
|
||||
SDL_free(item->fname);
|
||||
if (item->fname == NULL) {
|
||||
SDL_free(item);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue