diff --git a/spot/ltsmin/ltsmin.cc b/spot/ltsmin/ltsmin.cc index 5efb04a95..32d76e547 100644 --- a/spot/ltsmin/ltsmin.cc +++ b/spot/ltsmin/ltsmin.cc @@ -1027,6 +1027,8 @@ namespace spot } auto d = std::make_shared(); + assert(d); // Superfluous, but Debian's GCC 7 snapshot 20161207-1 warns + // about potential null pointer dereference on the next line. d->handle = h;