From 65536b079d5fdf6f8c60f10ad708ac3e795b398c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 16 Oct 2022 19:00:10 -0400 Subject: [PATCH] gstrfuncs: Fix a compiler warning in g_strerror() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MSVC is complaining about this code. Let’s try to help it see the light. See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2800 --- glib/gstrfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 3030114e3..106544f2f 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -1362,7 +1362,7 @@ g_strerror (gint errnum) G_UNLOCK (errors); errno = saved_errno; - return msg; + return NULL; } if (!g_get_console_charset (NULL))