From 54c7e9b4b3f5c7afe0c50654ddfb316697fbcda9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Aug 2011 12:13:04 +0000 Subject: Corrects infotype listing in the list_info function. --- src/core/commandbuffer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core') diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc index c4777d4..9757cb9 100644 --- a/src/core/commandbuffer.cc +++ b/src/core/commandbuffer.cc @@ -82,6 +82,11 @@ void func_list_info(std::string const &args) con_print << "Unknown info record '" << typestr << "'" << std::endl; } else { + if (!infotype) { + con_print << "Unknown info type '" << typestr << "'" << std::endl; + return; + } + // two arguments info = Info::find(infotype, labelstr); if (info) { -- cgit v1.2.3