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




commit fe55f3fe290a23d45f76dd68999f04c3d7e70cfd
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]