mirror of https://github.com/encounter/SDL.git
Linux: Fixed not needed call to close() on error.
It was called if file descriptor was none and -1.
This commit is contained in:
parent
f1924a616d
commit
86e9ab79ce
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue