summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
Diffstat (limited to 'funcs')
-rwxr-xr-xfuncs/func_strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c
index dced1e1a6..0350141d9 100755
--- a/funcs/func_strings.c
+++ b/funcs/func_strings.c
@@ -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;