diff --git a/funcs/func_cut.c b/funcs/func_cut.c index bcabd05086..51b9adc702 100644 --- a/funcs/func_cut.c +++ b/funcs/func_cut.c @@ -251,7 +251,7 @@ static int acf_sort_exec(struct ast_channel *chan, char *cmd, char *data, char * static int acf_cut_exec(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) { int ret = -1; - struct ast_module_user *u; + struct ast_module_user *u = NULL; if (chan) { ast_autoservice_start(chan); diff --git a/funcs/func_realtime.c b/funcs/func_realtime.c index c9e730bc1a..6442190e43 100644 --- a/funcs/func_realtime.c +++ b/funcs/func_realtime.c @@ -103,7 +103,7 @@ static int function_realtime_read(struct ast_channel *chan, char *cmd, char *dat static int function_realtime_write(struct ast_channel *chan, char *cmd, char *data, const char *value) { - struct ast_module_user *u; + struct ast_module_user *u = NULL; int res = 0; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(family);