mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 06:11:36 +00:00
Fix memory corruption with no input devices
This commit is contained in:
+1
-1
@@ -200,7 +200,7 @@ void input_init(char* mapfile) {
|
|||||||
sig_fdindex = numFds++;
|
sig_fdindex = numFds++;
|
||||||
|
|
||||||
if (fds == NULL)
|
if (fds == NULL)
|
||||||
fds = malloc(sizeof(struct pollfd));
|
fds = malloc(sizeof(struct pollfd)*numFds);
|
||||||
else
|
else
|
||||||
fds = realloc(fds, sizeof(struct pollfd)*numFds);
|
fds = realloc(fds, sizeof(struct pollfd)*numFds);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user