[glib/fix-gstrerror-warning] Fix a compiler waring in g_strerror




commit 2f2aa3a29f28ef034b3d85fbc762420daffe3571
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 16 19:00:10 2022 -0400

    Fix a compiler waring in g_strerror
    
    Msvc is complaining about this code, lets 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 ee934e5d76..0a5dffe550 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))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]