Merge branch 'wip/pwithnall/datetime-non-literal-null-conversion' into 'main'

gdatetime: Fix string type used to initialise array

See merge request GNOME/glib!4024
This commit is contained in:
Michael Catanzaro 2024-04-26 14:39:23 +00:00
commit 202188c5bf

View File

@ -3104,7 +3104,7 @@ format_number (GString *str,
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9" "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
}; };
const gchar * const *digits = ascii_digits; const gchar * const *digits = ascii_digits;
const gchar *tmp[10] = { '\0', }; const gchar *tmp[10] = { NULL, };
gint i = 0; gint i = 0;
#ifdef HAVE_LANGINFO_OUTDIGIT #ifdef HAVE_LANGINFO_OUTDIGIT
static GMutex alt_digits_mutex; static GMutex alt_digits_mutex;