Skip to content

Commit

Permalink
Remove 'malloc' from comment
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl authored and slouken committed Nov 22, 2021
1 parent 155db97 commit 0445c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/events/SDL_quit.c
Expand Up @@ -54,7 +54,7 @@ SDL_HandleSIG(int sig)
signal(sig, SDL_HandleSIG);

/* Send a quit event next time the event loop pumps. */
/* We can't send it in signal handler; malloc() might be interrupted! */
/* We can't send it in signal handler; SDL_malloc() might be interrupted! */
if ((sig == SIGINT) || (sig == SIGTERM)) {
send_quit_pending = SDL_TRUE;
}
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_video.c
Expand Up @@ -347,7 +347,7 @@ SDL_CreateWindowTexture(SDL_VideoDevice *unused, SDL_Window * window, Uint32 * f
data->pitch = (((window->w * data->bytes_per_pixel) + 3) & ~3);

{
/* Make static analysis happy about potential malloc(0) calls. */
/* Make static analysis happy about potential SDL_malloc(0) calls. */
const size_t allocsize = window->h * data->pitch;
data->pixels = SDL_malloc((allocsize > 0) ? allocsize : 1);
if (!data->pixels) {
Expand Down

0 comments on commit 0445c13

Please sign in to comment.