mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fix static analysis warning in SDL_render.c
This commit is contained in:
parent
5b65e0af01
commit
39690a0478
@ -1745,7 +1745,8 @@ SDL_LockTextureToSurface(SDL_Texture *texture, const SDL_Rect *rect,
|
||||
{
|
||||
SDL_Rect real_rect;
|
||||
void *pixels = NULL;
|
||||
int pitch, ret;
|
||||
int pitch = 0; /* fix static analysis */
|
||||
int ret;
|
||||
|
||||
if (texture == NULL || surface == NULL) {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user