summaryrefslogtreecommitdiff
path: root/src/plugins/logger/logger-buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/logger/logger-buffer.c')
-rw-r--r--src/plugins/logger/logger-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/logger/logger-buffer.c b/src/plugins/logger/logger-buffer.c
index 13dc5ec39..7db26859c 100644
--- a/src/plugins/logger/logger-buffer.c
+++ b/src/plugins/logger/logger-buffer.c
@@ -46,7 +46,7 @@ logger_buffer_add (struct t_gui_buffer *buffer, char *log_filename)
if (!buffer || !log_filename)
return NULL;
- new_logger_buffer = (struct t_logger_buffer *)malloc (sizeof (struct t_logger_buffer));
+ new_logger_buffer = malloc (sizeof (*new_logger_buffer));
if (new_logger_buffer)
{
new_logger_buffer->buffer = buffer;