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:
parent
7f9dec036d
commit
d404ad6b5b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue