aboutsummaryrefslogtreecommitdiff
path: root/shell/report.c
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2019-07-09 07:30:00 -0700
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-07-10 12:25:50 -0700
commit314208fd25cbb3f9705d4c2340118b3d57354c61 (patch)
tree34495039e21da0267b77e9c20cfd88859c26ede2 /shell/report.c
parent15b554571ca140195cedbf8bcb7805c1a64f3a59 (diff)
shell/report.c: fix "return with no value"
Fix the warning: report.c: In function ‘make_icon_css’: shell/report.c:103:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] Failure of the sanity test at the beginning of "make_icon_css" will result in returning of a random value instead of a gchar*. With this patch we return a gchar* to an empty string instead. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Diffstat (limited to 'shell/report.c')
-rw-r--r--shell/report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/report.c b/shell/report.c
index 89fcc4a3..4949c557 100644
--- a/shell/report.c
+++ b/shell/report.c
@@ -100,7 +100,7 @@ gchar *icon_name_css_id(const gchar *file) {
gchar *make_icon_css(const gchar *file) {
if (!file || *file == 0)
- return;
+ return g_strdup("");
gchar *ret = NULL;
gchar *path = g_build_filename(params.path_data, "pixmaps", file, NULL);
gchar *contents = NULL;