]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix parking issue (bug #3840)
authorRussell Bryant <russell@russellbryant.com>
Mon, 20 Dec 2004 00:27:19 +0000 (00:27 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 20 Dec 2004 00:27:19 +0000 (00:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4497 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index 409e04763898d437086151838dd54aa2fa375fe8..5cd2da58cd0e0b8115fc8abf298b8042f6cb6b95 100755 (executable)
@@ -152,6 +152,7 @@ int ast_park_call(struct ast_channel *chan, struct ast_channel *peer, int timeou
        struct ast_context *con;
        pu = malloc(sizeof(struct parkeduser));
        if (pu) {
+               memset(pu,0,sizeof(struct parkeduser));
                ast_mutex_lock(&parking_lock);
                for (x=parking_start;x<=parking_stop;x++) {
                        cur = parkinglot;