aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_uri.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 01:55:31 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 01:55:31 +0000
commitdf706a8900728f959c8f227580fe45227495fb81 (patch)
treece21ec4bfdeea79845fbbf2eb5308a2e6d513fc8 /funcs/func_uri.c
parent82616a4d97f94c6988c4db02adb6b10f77891c89 (diff)
issue #5648
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7011 f38db490-d61c-443f-a65b-d21fe96a405b
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;
}