SDL_rtf: Fix 'retval' may be used uninitialized [-Werror=maybe-uninitialized] (80d8c)

From 80d8cd0f6bc360bdf90c2704c1533257f31cfb8c Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Mon, 15 Jan 2024 18:54:08 +0100
Subject: [PATCH] Fix 'retval' may be used uninitialized
 [-Werror=maybe-uninitialized]

(cherry picked from commit 5832e3a29971c2b12ff899037c98959a4c699a94)
---
 SDL_rtf.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/SDL_rtf.c b/SDL_rtf.c
index 244d71c..ff86920 100644
--- a/SDL_rtf.c
+++ b/SDL_rtf.c
@@ -121,6 +121,10 @@ int RTF_Load_RW(RTF_Context *ctx, SDL_RWops *src, int freesrc)
             RTF_SetError("Couldn't find font for text");
             retval = -1;
             break;
+        default:
+            RTF_SetError("Unknown error");
+            retval = -1;
+            break;
     }
     while ( ctx->psave ) {
         ecPopRtfState(ctx);