initialize variable
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 14 Oct 2005 00:45:38 +0000 (00:45 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 14 Oct 2005 00:45:38 +0000 (00:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6786 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_strings.c

index dced1e1..0350141 100755 (executable)
@@ -69,7 +69,7 @@ struct ast_custom_function fieldqty_function = {
 
 static char *builtin_function_regex(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) 
 {
-       char *arg, *earg, *tmp, errstr[256] = "";
+       char *arg, *earg = NULL, *tmp, errstr[256] = "";
        int errcode;
        regex_t regexbuf;