summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-10-31 18:22:10 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-10-31 18:22:10 +0100
commit06b48ccf8367ab4433fd7e0b3bcd26afb635ff92 (patch)
tree2b73b7fcfdeed4fa9a51ed8db15a1a1fa07d8603 /src/core
parent2378e4c2db770a1572cbec720d5a5b0021fe701f (diff)
downloadweechat-06b48ccf8367ab4433fd7e0b3bcd26afb635ff92.zip
Add 2 "return" to make C static analyzer happy
Diffstat (limited to 'src/core')
-rw-r--r--src/core/weechat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/weechat.c b/src/core/weechat.c
index 28ae487b5..322558ffd 100644
--- a/src/core/weechat.c
+++ b/src/core/weechat.c
@@ -251,6 +251,8 @@ weechat_create_home_dirs ()
string_iconv_fprintf (stderr,
_("Error: unable to get HOME directory\n"));
weechat_shutdown (EXIT_FAILURE, 0);
+ /* make C static analyzer happy (never executed) */
+ return;
}
dir_length = strlen (ptr_home) + 10;
weechat_home = malloc (dir_length);
@@ -260,6 +262,8 @@ weechat_create_home_dirs ()
_("Error: not enough memory for home "
"directory\n"));
weechat_shutdown (EXIT_FAILURE, 0);
+ /* make C static analyzer happy (never executed) */
+ return;
}
snprintf (weechat_home, dir_length, "%s%s.weechat", ptr_home,
DIR_SEPARATOR);