[svn-commits] kmoore: branch kmoore/cel_transfers r394361 - /team/kmoore/cel_transfers/main/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jul 15 07:53:28 CDT 2013
Author: kmoore
Date: Mon Jul 15 07:53:27 2013
New Revision: 394361
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394361
Log:
Add NULL check
Modified:
team/kmoore/cel_transfers/main/cel.c
Modified: team/kmoore/cel_transfers/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_transfers/main/cel.c?view=diff&rev=394361&r1=394360&r2=394361
==============================================================================
--- team/kmoore/cel_transfers/main/cel.c (original)
+++ team/kmoore/cel_transfers/main/cel.c Mon Jul 15 07:53:27 2013
@@ -1438,6 +1438,10 @@
struct ast_channel_snapshot *channel = ast_multi_channel_blob_get_channel(obj, "channel");
struct ast_channel_snapshot *target = ast_multi_channel_blob_get_channel(obj, "target");
+ if (!channel || !target) {
+ return;
+ }
+
cel_report_event(target, AST_CEL_PICKUP, NULL, NULL, channel->name);
}
More information about the svn-commits
mailing list