[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-231-gb1c1c6d36
wwp at claws-mail.org
wwp at claws-mail.org
Mon Sep 27 17:58:16 CEST 2021
The branch, gtk3 has been updated
via b1c1c6d36cb0d6c318b68d4062f76b22d2b9d0ea (commit)
from 5d9d64f080b718f6754dd8a23dadfba8b447ec2c (commit)
Summary of changes:
src/stock_pixmap.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit b1c1c6d36cb0d6c318b68d4062f76b22d2b9d0ea
Author: wwp <subscript at free.fr>
Date: Mon Sep 27 17:57:48 2021 +0200
Fix CID 1491190: explicit null dereference.
diff --git a/src/stock_pixmap.c b/src/stock_pixmap.c
index c8e702d75..648a3f0e4 100644
--- a/src/stock_pixmap.c
+++ b/src/stock_pixmap.c
@@ -800,15 +800,21 @@ static void stock_pixmap_find_themes_in_dir(GList **list, const gchar *dirname)
gchar *stock_pixmap_get_system_theme_dir_for_theme(const gchar *theme)
{
- const gchar *sep = NULL;
- if (theme && *theme)
- sep = G_DIR_SEPARATOR_S;
+ if (theme && *theme) {
#ifndef G_OS_WIN32
- return g_strconcat(PACKAGE_DATA_DIR, G_DIR_SEPARATOR_S,
- PIXMAP_THEME_DIR, sep, theme, NULL);
+ return g_strconcat(PACKAGE_DATA_DIR, G_DIR_SEPARATOR_S,
+ PIXMAP_THEME_DIR, G_DIR_SEPARATOR_S, theme, NULL);
#else
- return g_strconcat(w32_get_themes_dir(), sep, theme, NULL);
+ return g_strconcat(w32_get_themes_dir(), G_DIR_SEPARATOR_S, theme, NULL);
#endif
+ } else {
+#ifndef G_OS_WIN32
+ return g_strconcat(PACKAGE_DATA_DIR, G_DIR_SEPARATOR_S,
+ PIXMAP_THEME_DIR, NULL);
+#else
+ return g_strdup(w32_get_themes_dir());
+#endif
+ }
}
GList *stock_pixmap_themes_list_new(void)
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list