From bdcbed43de88c867107e7e04aeb0c693853e5a64 Mon Sep 17 00:00:00 2001 From: Pavel Tsekov Date: Wed, 19 Sep 2007 11:01:50 +0000 Subject: [PATCH] * src/widget.c (listbox_new): Remove redundant initialization of WListbox fields. --- src/ChangeLog | 5 +++++ src/widget.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index af77ad947..14d877dce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-09-14 Pavel Tsekov + + * widget.c (listbox_new): Remove redundant initialization of + WListbox fields. + 2007-09-17 Maxim Britov * util.c (file_date): Do not ignore the return value diff --git a/src/widget.c b/src/widget.c index 5a3e9cfc6..a8b3129f9 100644 --- a/src/widget.c +++ b/src/widget.c @@ -2161,8 +2161,6 @@ listbox_new (int y, int x, int width, int height, lcback callback) else l->height = height; l->count = 0; - l->top = 0; - l->current = 0; l->cback = callback; l->allow_duplicates = 1; l->scrollbar = slow_terminal ? 0 : 1;