1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

script: remove check of NULL pointers before calling free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-24 23:51:02 +02:00
parent f79153ace7
commit 3973258628
4 changed files with 32 additions and 64 deletions
+1 -2
View File
@@ -143,8 +143,7 @@ script_config_get_diff_command ()
weechat_string_free_split (paths);
}
}
if (dir_separator)
free (dir_separator);
free (dir_separator);
if (!result[0])
snprintf (result, sizeof (result), "diff");
return result;