summaryrefslogtreecommitdiff
path: root/src/core/recode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/recode.c')
-rw-r--r--src/core/recode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/recode.c b/src/core/recode.c
index 2f126d6e..029d7ff1 100644
--- a/src/core/recode.c
+++ b/src/core/recode.c
@@ -198,15 +198,14 @@ char **recode_split(const SERVER_REC *server, const char *str,
int n = 0;
char **ret;
- if (!str)
- return NULL;
+ g_return_val_if_fail(str != NULL, NULL);
if (settings_get_bool("recode")) {
to = find_conversion(server, target);
if (to == NULL)
/* default outgoing charset if set */
to = settings_get_str("recode_out_default_charset");
- if (to && *to != '\0') {
+ if (to != NULL && *to != '\0') {
if (settings_get_bool("recode_transliterate") &&
!is_translit(to))
to = translit_to = g_strconcat(to,