diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-10-16 19:00:10 -0400 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2022-10-19 14:53:45 +0100 |
commit | 65536b079d5fdf6f8c60f10ad708ac3e795b398c (patch) | |
tree | b91096e590f7cb3132c30e8640bff4b6c0d8d6d5 | |
parent | 4b6cc2d87bc788eff3edca55c1c6e05a9d97d33d (diff) | |
download | glib-65536b079d5fdf6f8c60f10ad708ac3e795b398c.tar.gz |
gstrfuncs: Fix a compiler warning in g_strerror()
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
-rw-r--r-- | glib/gstrfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |