diff options
author | Guillem Jover <guillem@debian.org> | 2015-09-17 02:03:53 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-09-17 04:50:40 +0200 |
commit | a603506740df8e83d441c72f1de234b9ba709693 (patch) | |
tree | b156c7319716657fdb592c39f66d8db2b7a5e3da /dselect/baselist.cc | |
parent | 9a75ba2a93f349bc74fd80068bc4abc5a44f728b (diff) | |
download | dpkg-a603506740df8e83d441c72f1de234b9ba709693.tar.gz |
dselect: Initialize all baselist member variables
Warned-by: coverity
Diffstat (limited to 'dselect/baselist.cc')
-rw-r--r-- | dselect/baselist.cc | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/dselect/baselist.cc b/dselect/baselist.cc index ffde95ea0..0536c891b 100644 --- a/dselect/baselist.cc +++ b/dselect/baselist.cc @@ -301,10 +301,37 @@ baselist::baselist(keybindings *kb) { total_width = max(TOTAL_LIST_WIDTH, COLS); xmax= -1; - list_height=0; info_height=0; - topofscreen= 0; leftofscreen= 0; + ymax = -1; + + list_height = 0; + info_height = 0; + title_height = 0; + whatinfo_height = 0; + colheads_height = 0; + thisstate_height = 0; + + list_row = 0; + info_row = 0; + whatinfo_row = 0; + colheads_row = 0; + thisstate_row = 0; + + topofscreen = 0; + leftofscreen = 0; + infotopofscreen = 0; + infolines = 0; + listpad = nullptr; + infopad = nullptr; + colheadspad = nullptr; + thisstatepad = nullptr; + titlewin = nullptr; + querywin = nullptr; + whatinfowin = nullptr; + cursorline = -1; + ldrawnstart = 0; + ldrawnend = 0; showinfo= 1; searchstring[0]= 0; |