mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-16 00:28:28 -07:00
Cleanup error/warning messages in AEL2 parser
(closes issue #16684) Reported by: Silmaril Patches: patch_ael2_logmsg.diff uploaded by Silmaril (license 979) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@267009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+2
-2
@@ -969,7 +969,7 @@ op_colon (struct val *a, struct val *b)
|
||||
/* compile regular expression */
|
||||
if ((eval = regcomp (&rp, b->u.s, REG_EXTENDED)) != 0) {
|
||||
regerror (eval, &rp, errbuf, sizeof(errbuf));
|
||||
ast_log(LOG_WARNING,"regcomp() error : %s",errbuf);
|
||||
ast_log(LOG_WARNING, "regcomp() error : %s\n", errbuf);
|
||||
free_value(a);
|
||||
free_value(b);
|
||||
return make_str("");
|
||||
@@ -1020,7 +1020,7 @@ op_eqtilde (struct val *a, struct val *b)
|
||||
/* compile regular expression */
|
||||
if ((eval = regcomp (&rp, b->u.s, REG_EXTENDED)) != 0) {
|
||||
regerror (eval, &rp, errbuf, sizeof(errbuf));
|
||||
ast_log(LOG_WARNING,"regcomp() error : %s",errbuf);
|
||||
ast_log(LOG_WARNING, "regcomp() error : %s\n", errbuf);
|
||||
free_value(a);
|
||||
free_value(b);
|
||||
return make_str("");
|
||||
|
||||
Reference in New Issue
Block a user