From cb5206b2304630e2fefa816b527f3d68b6d1555a Mon Sep 17 00:00:00 2001 From: cflakes Date: Thu, 29 Apr 2010 20:00:03 +0000 Subject: [PATCH] Properly fixed the last commit. Stupid CTemplate. Stupid me. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1954 726aef4b-f618-498e-8847-2d620e286838 --- Template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Template.cpp b/Template.cpp index 985bebdb..dd50a9cc 100644 --- a/Template.cpp +++ b/Template.cpp @@ -442,7 +442,7 @@ bool CTemplate::Print(const CString& sFileName, ostream& oOut) { bool bSort = (sArgs.Token(1).Left(4).Equals("SORT")); vector* pvLoop = GetLoop(sLoopName); - if (bSort && pvLoop->size() > 1) { + if (bSort && pvLoop != NULL && pvLoop->size() > 1) { CString sKey; if(sArgs.Token(1).TrimPrefix_n("SORT").Left(4).Equals("ASC=")) {