diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-04-18 10:28:26 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-05-11 21:06:27 +0200 |
commit | 9eecad496db62159376bda0cf2789690039872ce (patch) | |
tree | 8ab9a89e4795bea2ca29b1201c9476a7da3462e7 /src/plugins/logger/logger.c | |
parent | 53617226996512978397f661c4f1568ad0db4ae4 (diff) | |
download | weechat-9eecad496db62159376bda0cf2789690039872ce.zip |
logger: remove unused variable weechat_dir (issue #1285)
Diffstat (limited to 'src/plugins/logger/logger.c')
-rw-r--r-- | src/plugins/logger/logger.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index 16f81b7b0..1fd9acc0e 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -394,7 +394,7 @@ end: char * logger_get_filename (struct t_gui_buffer *buffer) { - char *res, *mask_expanded, *file_path, *dir_separator, *weechat_dir; + char *res, *mask_expanded, *file_path, *dir_separator; const char *mask; int length; @@ -405,12 +405,6 @@ logger_get_filename (struct t_gui_buffer *buffer) dir_separator = weechat_info_get ("dir_separator", ""); if (!dir_separator) return NULL; - weechat_dir = weechat_info_get ("weechat_dir", ""); - if (!weechat_dir) - { - free (dir_separator); - return NULL; - } /* get filename mask for buffer */ mask = logger_get_mask_for_buffer (buffer); @@ -423,7 +417,6 @@ logger_get_filename (struct t_gui_buffer *buffer) weechat_prefix ("error"), LOGGER_PLUGIN_NAME, weechat_buffer_get_string (buffer, "name")); free (dir_separator); - free (weechat_dir); return NULL; } @@ -449,7 +442,6 @@ logger_get_filename (struct t_gui_buffer *buffer) end: free (dir_separator); - free (weechat_dir); if (mask_expanded) free (mask_expanded); if (file_path) |