about summary refs log tree commit diff stats
path: root/src/ui/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/buffer.c')
-rw-r--r--src/ui/buffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index 903d0662..5ec68bd2 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -69,12 +69,11 @@ buffer_push(ProfBuff buffer, const char show_char, const char * const date_fmt,
     buffer->entries = g_slist_append(buffer->entries, e);
 }
 
-ProfBuffEntry
+ProfBuffEntry*
 buffer_yield_entry(ProfBuff buffer, int entry)
 {
     GSList *node = g_slist_nth(buffer->entries, entry);
-    ProfBuffEntry *buff_entry = node->data;
-    return *buff_entry;
+    return node->data;
 }
 
 static void