1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

core: return directly output of string_dyn_free without temporary variable

This commit is contained in:
Sébastien Helleu
2022-12-19 07:04:33 +01:00
parent 40339b288a
commit 42113ebc0f
4 changed files with 8 additions and 22 deletions
+2 -5
View File
@@ -1947,7 +1947,7 @@ string_translate_chars (const char *string,
{
int length, length2, translated;
const char *ptr_string, *ptr_chars1, *ptr_chars2;
char **result, *ptr_result;
char **result;
if (!string)
return NULL;
@@ -1984,10 +1984,7 @@ string_translate_chars (const char *string,
ptr_string = utf8_next_char (ptr_string);
}
ptr_result = *result;
string_dyn_free (result, 0);
return ptr_result;
return string_dyn_free (result, 0);
}
/*