summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2022-10-20 12:36:27 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2022-10-20 12:36:27 +0000
commit1db9066485b466162324e651d61d91ca01db7d60 (patch)
treee85bd3fcf7606516c5467fbb57cd24471393045e
parent4dcb7f1f9f773452686b67a605635d832bed57e0 (diff)
parent65536b079d5fdf6f8c60f10ad708ac3e795b398c (diff)
downloadglib-1db9066485b466162324e651d61d91ca01db7d60.tar.gz
Merge branch 'fix-gstrerror-warning' into 'main'
gstrfuncs: Fix a compiler warning in g_strerror() See merge request GNOME/glib!2956
-rw-r--r--glib/gstrfuncs.c2
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))