diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2024-04-12 11:44:41 +0200 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-04-12 15:56:56 +0200 |
| commit | 88b0673b0dcc4c9c917b0cb9c16cc2ca0a92a987 (patch) | |
| tree | 6b71cff926e5ca7dc92e279c9e3bfa26d7371f44 | |
| parent | 690993b1b9b4a932ca5bf5374c59e4cf88f18732 (diff) | |
columnar: Fix floating point exception (list is empty if -V)
| -rw-r--r-- | apt-private/private-output.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/private-output.h b/apt-private/private-output.h index dcffd1880..70f5b9726 100644 --- a/apt-private/private-output.h +++ b/apt-private/private-output.h @@ -96,7 +96,7 @@ template<class Container, class PredicateC, class DisplayP, class DisplayV> bool if (printedTitle == true) { out << std::endl; - if (ListColumns) + if (ListColumns && not PackageList.empty()) ShowWithColumns(out, PackageList, 2, ScreenWidth); return false; } |
