summaryrefslogtreecommitdiff
path: root/funcs/func_logic.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-11-08 01:55:31 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-11-08 01:55:31 +0000
commita0a97696160c209413f213208b906d2990650320 (patch)
treece21ec4bfdeea79845fbbf2eb5308a2e6d513fc8 /funcs/func_logic.c
parent2ea48ce114efcce674220ef6cbb1cd61f3e79494 (diff)
issue #5648
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_logic.c')
-rwxr-xr-xfuncs/func_logic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/funcs/func_logic.c b/funcs/func_logic.c
index a195eca43..f748ba939 100755
--- a/funcs/func_logic.c
+++ b/funcs/func_logic.c
@@ -64,7 +64,7 @@ static char *builtin_function_iftime(struct ast_channel *chan, char *cmd, char *
iftrue = strsep(&data, ":");
iffalse = data;
- if (!expr || ast_strlen_zero(expr) || !(iftrue || iffalse)) {
+ if (ast_strlen_zero(expr) || !(iftrue || iffalse)) {
ast_log(LOG_WARNING, "Syntax IFTIME(<timespec>?[<true>][:<false>])\n");
return NULL;
}
@@ -104,7 +104,7 @@ static char *builtin_function_if(struct ast_channel *chan, char *cmd, char *data
iftrue = strsep(&data, ":");
iffalse = data;
- if (!expr || ast_strlen_zero(expr) || !(iftrue || iffalse)) {
+ if (ast_strlen_zero(expr) || !(iftrue || iffalse)) {
ast_log(LOG_WARNING, "Syntax IF(<expr>?[<true>][:<false>])\n");
return NULL;
}
@@ -136,7 +136,7 @@ static char *builtin_function_set(struct ast_channel *chan, char *cmd, char *dat
varname = strsep(&data, "=");
val = data;
- if (!varname || ast_strlen_zero(varname) || !val) {
+ if (ast_strlen_zero(varname) || !val) {
ast_log(LOG_WARNING, "Syntax SET(<varname>=[<value>])\n");
return NULL;
}