Skip to content

Commit

Permalink
Linux: Fixed not needed call to close() on error.
Browse files Browse the repository at this point in the history
It was called if file descriptor was none and -1.
  • Loading branch information
philippwiesemann committed Jun 8, 2015
1 parent f1924a6 commit 86e9ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haptic/linux/SDL_syshaptic.c
Expand Up @@ -390,8 +390,8 @@ SDL_SYS_HapticName(int index)
/* No name found, return device character device */
name = item->fname;
}
close(fd);
}
close(fd);

return name;
}
Expand Down

0 comments on commit 86e9ab7

Please sign in to comment.