(closes issue #16040)
Reported by: ebroad
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233059
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
static int handle_transfer_button(struct skinny_subchannel *sub)
{
- struct skinny_line *l = sub->parent;
- struct skinny_device *d = l->device;
+ struct skinny_line *l;
+ struct skinny_device *d;
struct skinny_subchannel *newsub;
struct ast_channel *c;
pthread_t t;
ast_verbose("Transfer: No subchannel to transfer\n");
return -1;
}
+
+ l = sub->parent;
+ d = l->device;
+
if (!sub->related) {
/* Another sub has not been created so this must be first XFER press */
if (!sub->onhold) {