diff options
Diffstat (limited to 'apt-private')
| -rw-r--r-- | apt-private/private-history.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-private/private-history.cc b/apt-private/private-history.cc index cf4540772..31b3b1333 100644 --- a/apt-private/private-history.cc +++ b/apt-private/private-history.cc @@ -352,6 +352,8 @@ class TransactionController static bool ParseId(const char *str, size_t &id, size_t max) { + if (str == nullptr) + return _error->Error(_("Incorrect usage, no ID was given.")); try { id = std::stoi(str); |
