issue #5703
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 10 Nov 2005 23:26:40 +0000 (23:26 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 10 Nov 2005 23:26:40 +0000 (23:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7054 65c4cc65-6c06-0410-ace0-fbb531ad65f3

ChangeLog
res/res_features.c

index 315883a..1608136 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-11-10  Kevin P. Fleming  <kpfleming@digium.com>
 
+       * res/res_features.c (load_config): properly initialize referenced variable (issue #5703)
+
        * apps/app_queue.c (rqm_exec): correct segfault problem (issue #5705)
        (aqm_exec): ditto
 
index 04cccc2..052b483 100755 (executable)
@@ -1949,7 +1949,7 @@ static int load_config(void)
        struct ast_config *cfg = NULL;
        struct ast_variable *var = NULL;
        char old_parking_ext[AST_MAX_EXTENSION];
-       char old_parking_con[AST_MAX_EXTENSION];
+       char old_parking_con[AST_MAX_EXTENSION] = "";
 
        if (!ast_strlen_zero(parking_con)) {
                strcpy(old_parking_ext, parking_ext);