1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

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

This commit is contained in:
Sébastien Helleu
2024-04-24 23:22:45 +02:00
parent 1ae33517e9
commit 852b8a5cdb
3 changed files with 54 additions and 123 deletions
+1 -2
View File
@@ -1071,8 +1071,7 @@ fset_buffer_display_option_predefined_format (struct t_fset_option *fset_option)
str_type,
(str_value) ? str_value : "");
if (str_value)
free (str_value);
free (str_value);
return fset_option->index;
}