SDL_image: fix another declaration-after-statement error after commit aa19bc897ddc. (0e77b)

From 0e77b7037ec60ae069e20a2fa86a2fc4a6c0d1ab Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 1 Nov 2022 17:56:00 +0300
Subject: [PATCH] fix another declaration-after-statement error after commit
 aa19bc897ddc.

---
 IMG_webp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/IMG_webp.c b/IMG_webp.c
index a0876e56..96532a20 100644
--- a/IMG_webp.c
+++ b/IMG_webp.c
@@ -350,10 +350,11 @@ IMG_Animation *IMG_LoadWEBPAnimation_RW(SDL_RWops *src)
     anim->frames = (SDL_Surface **)SDL_calloc(anim->count, sizeof(*anim->frames));
     anim->delays = (int *)SDL_calloc(anim->count, sizeof(*anim->delays));
     for (frame_idx = 0; frame_idx < (anim->count); frame_idx++) {
+        SDL_Surface* curr;
         if (lib.WebPDemuxGetFrame(dmuxer, frame_idx, &iter) == 0) {
             break;
         }
-        SDL_Surface* curr = SDL_CreateRGBSurface(SDL_SWSURFACE,
+        curr = SDL_CreateRGBSurface(SDL_SWSURFACE,
             features.width, features.height,
             features.has_alpha?32:24, Rmask,Gmask,Bmask,Amask);
         if (curr == NULL) {