Quickly return 0 on compiling a NULL or whitespace-only expression.

git-svn-id: http://voip.null.ro/svn/yate@3150 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-03-26 13:01:56 +00:00
parent 7f9dec036d
commit d404ad6b5b
1 changed files with 2 additions and 0 deletions

View File

@ -682,6 +682,8 @@ bool ExpEvaluator::runEvaluate(ObjList& stack)
int ExpEvaluator::compile(const char* expr)
{
if (!skipWhites(expr))
return 0;
int res = 0;
do {
if (!runCompile(expr))