mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 16:36:25 +00:00
Linux: Fixed not needed call to close() on error.
It was called if file descriptor was none and -1.
This commit is contained in:
@@ -390,8 +390,8 @@ SDL_SYS_HapticName(int index)
|
|||||||
/* No name found, return device character device */
|
/* No name found, return device character device */
|
||||||
name = item->fname;
|
name = item->fname;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
}
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user