Don't compare pointer against '0', but NULL

This commit is contained in:
Sylvain 2022-11-17 09:18:49 +01:00
parent 77bcd269be
commit b7358e47d5
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ void InitCreateRenderer(void *arg)
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
SDLTest_AssertPass("SDL_CreateRenderer()");
SDLTest_AssertCheck(renderer != 0, "Check SDL_CreateRenderer result");
SDLTest_AssertCheck(renderer != NULL, "Check SDL_CreateRenderer result");
if (renderer == NULL) {
SDL_DestroyWindow(window);
return;