Browse Source

dselect: Remove intermediate pkgbin info variable

Guillem Jover 8 years ago
parent
commit
6dcc38a354
1 changed files with 2 additions and 3 deletions
  1. 2 3
      dselect/pkgtop.cc

+ 2 - 3
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;