]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow some function modules to compile under dev mode.
authorJason Parker <jparker@digium.com>
Mon, 29 Oct 2007 17:13:04 +0000 (17:13 +0000)
committerJason Parker <jparker@digium.com>
Mon, 29 Oct 2007 17:13:04 +0000 (17:13 +0000)
Issue 11104, patch by andrew.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87340 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_cut.c
funcs/func_realtime.c

index bcabd05086627facce402a6b33528f9475d7ec97..51b9adc702900ae95e15236240efc94946a086f5 100644 (file)
@@ -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);
index c9e730bc1a7c2582f5b92be5ac673b0ebfd07671..6442190e4312f70e1688d4020fbcfa48a1204e7b 100644 (file)
@@ -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);