remove unnecessary check before ast_strlen_zero (issue #6179)
authorRussell Bryant <russell@russellbryant.com>
Mon, 9 Jan 2006 18:29:03 +0000 (18:29 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 9 Jan 2006 18:29:03 +0000 (18:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7901 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_md5.c

index fb88290..c7217c8 100644 (file)
@@ -60,7 +60,7 @@ static char *builtin_function_checkmd5(struct ast_channel *chan, char *cmd, char
        char *args;
        char newmd5[33];
 
-       if (!data || ast_strlen_zero(data)) {
+       if (ast_strlen_zero(data)) {
                ast_log(LOG_WARNING, "Syntax: CHECK_MD5(<digest>,<data>) - missing argument!\n");
                return NULL;
        }