diff options
author | Guillem Jover <guillem@debian.org> | 2016-04-25 00:05:32 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-05-02 03:35:44 +0200 |
commit | 6dcc38a354432f9d4d4f24b6ccc8c4a29472e1e4 (patch) | |
tree | 0c7e47dbb07662461996af0f0f427b162cb682e9 /dselect/pkgtop.cc | |
parent | a53b82ce38c2eca43e5fbbfbf82d9129fcdf7418 (diff) | |
download | dpkg-6dcc38a354432f9d4d4f24b6ccc8c4a29472e1e4.tar.gz |
dselect: Remove intermediate pkgbin info variable
Diffstat (limited to 'dselect/pkgtop.cc')
-rw-r--r-- | dselect/pkgtop.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dselect/pkgtop.cc b/dselect/pkgtop.cc index 39893f5c6..0da1f109d 100644 --- a/dselect/pkgtop.cc +++ b/dselect/pkgtop.cc @@ -140,7 +140,6 @@ void packagelist::redraw1itemsel(int index, int selected) { int i, indent, j; const char *p; const struct pkginfo *pkg= table[index]->pkg; - const struct pkgbin *info = &pkg->available; int screenline = index - topofscreen; wattrset(listpad, part_attr[selected ? listsel : list]); @@ -238,8 +237,8 @@ void packagelist::redraw1itemsel(int index, int selected) { } i = col_description.width; - p= info->description ? info->description : - pkg->installed.description ? pkg->installed.description : ""; + p = pkg->available.description ? pkg->available.description : + pkg->installed.description ? pkg->installed.description : ""; while (i>0 && *p && *p != '\n') { waddnstr(listpad,p,1); i--; p++; } } else { const char *section= pkg->section; |