summaryrefslogtreecommitdiff
path: root/funcs/func_uri.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_uri.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_uri.c')
-rwxr-xr-xfuncs/func_uri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_uri.c b/funcs/func_uri.c
index bd1fee4f5..f75023c5f 100755
--- a/funcs/func_uri.c
+++ b/funcs/func_uri.c
@@ -45,7 +45,7 @@ static char *builtin_function_uriencode(struct ast_channel *chan, char *cmd, cha
{
char uri[BUFSIZ];
- if (!data || ast_strlen_zero(data)) {
+ if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "Syntax: URIENCODE(<data>) - missing argument!\n");
return NULL;
}
@@ -59,7 +59,7 @@ static char *builtin_function_uriencode(struct ast_channel *chan, char *cmd, cha
/*!\brief builtin_function_uridecode: Decode URI according to RFC 2396 */
static char *builtin_function_uridecode(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
{
- if (!data || ast_strlen_zero(data)) {
+ if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "Syntax: URIDECODE(<data>) - missing argument!\n");
return NULL;
}