From e83b468ade007388d1a20c50fa08c545a364b247 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 26 Jun 2011 12:47:51 -0400 Subject: [PATCH] Bug - Seg fault - Fixed seg fault caused when a custom report had no override labels. --- src/commands/CmdCustom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index c014bdbb6..12c31767a 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -127,7 +127,8 @@ int CmdCustom::execute (std::string& output) for (unsigned int i = 0; i < columns.size (); ++i) { Column* c = Column::factory (columns[i], _keyword); - c->setLabel (labels[i]); + if (i < labels.size ()) + c->setLabel (labels[i]); view.add (c); }