gdate: Add an assertion to help static analysis

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Coverity CID: #1486833
This commit is contained in:
Philip Withnall 2022-05-05 11:23:49 +01:00
parent b810bdc94d
commit c7c530c3b8

View File

@ -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;
}