diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-28 19:52:52 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-28 19:52:52 +0000 |
commit | 3ac749558c8ee4f85dcbd42b953d77d1438237ea (patch) | |
tree | 3b61aaa8cdf587d4d77eb0d4c4c6db13475f19d9 /main | |
parent | 81eec643e6667e696001564775673eb51ad4da97 (diff) |
Merged revisions 293194 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r293194 | tilghman | 2010-10-28 14:44:37 -0500 (Thu, 28 Oct 2010) | 5 lines
"!00" evaluated as false, which is incorrect. Fixing.
Reported (though the reporter did not understand he was reporting a bug) on the asterisk-users list:
http://lists.digium.com/pipermail/asterisk-users/2010-October/255505.html
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@293195 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/ast_expr2.y | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/ast_expr2.y b/main/ast_expr2.y index d963fba61..aabca8a46 100644 --- a/main/ast_expr2.y +++ b/main/ast_expr2.y @@ -1402,6 +1402,8 @@ op_compl (struct val *a) v1 = 0; else if (strlen(a->u.s) == 1 && a->u.s[0] == '0' ) v1 = 0; + else + v1 = atoi(a->u.s); } break; @@ -1414,6 +1416,8 @@ op_compl (struct val *a) v1 = 0; else if (strlen(a->u.s) == 1 && a->u.s[0] == '0' ) v1 = 0; + else + v1 = atoi(a->u.s); } break; } |