mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
Merge branch 'coverity-issues' into 'main'
Add a couple of assertions to help with static analysis See merge request GNOME/glib!2635
This commit is contained in:
commit
68228995d7
@ -681,6 +681,8 @@ g_convert_with_fallback (const gchar *str,
|
||||
if (!local_error)
|
||||
return dest;
|
||||
|
||||
g_assert (dest == NULL);
|
||||
|
||||
if (!g_error_matches (local_error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE))
|
||||
{
|
||||
g_propagate_error (error, local_error);
|
||||
|
@ -2725,6 +2725,8 @@ g_date_strftime (gchar *s,
|
||||
g_warning (G_STRLOC "Error converting results of strftime to UTF-8: %s", error->message);
|
||||
g_error_free (error);
|
||||
|
||||
g_assert (convbuf == NULL);
|
||||
|
||||
s[0] = '\0';
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user