]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't crash on empty notify channel
authorTerry Wilson <twilson@digium.com>
Sun, 30 Oct 2011 02:21:19 +0000 (02:21 +0000)
committerTerry Wilson <twilson@digium.com>
Sun, 30 Oct 2011 02:21:19 +0000 (02:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@342715 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_calendar.c

index b7755378171f176a5b38017c23ffd97c09b2e901..604d0b5c49f45ec6e8b85ae863f28f6289c1ee6a 100644 (file)
@@ -694,7 +694,7 @@ static void *do_notify(void *data)
 {
        struct ast_calendar_event *event = data;
        struct ast_dial *dial = NULL;
-       struct ast_str *apptext = NULL, *tmpstr;
+       struct ast_str *apptext = NULL, *tmpstr = NULL;
        struct ast_datastore *datastore;
        enum ast_dial_result res;
        struct ast_channel *chan = NULL;