From c0b35ef0756ef2a43996bba3bea8fa077b119c9d Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 20 Feb 2015 10:19:41 +0100 Subject: [PATCH] Fix an uninitialized var --- vroom.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/vroom.pl b/vroom.pl index ec37a9a..0f5c4a8 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1618,6 +1618,7 @@ any '/api' => sub { if ($self->session($room->{name}) && $self->session($room->{name})->{role}){ # If we just have been promoted to owner if ($self->session($room->{name})->{role} ne 'owner' && + $self->get_peer_role({room => $room->{name}, peer_id => $peer_id}) && $self->get_peer_role({room => $room->{name}, peer_id => $peer_id}) eq 'owner'){ $self->session($room->{name})->{role} = 'owner'; $self->associate_key_to_room(