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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user