[Spice-devel] [PATCH] fix error-path return in snd_set_record_peer()

Christophe Fergeau cfergeau at redhat.com
Tue Apr 17 09:56:13 PDT 2012


Hey,

Good catch, ack.

Christophe

On Tue, Apr 17, 2012 at 08:05:04PM +0400, Michael Tokarev wrote:
> The error_{1,2} labels in this functions are backwards.
> 
> Signed-off-by: Michael Tokarev <mjt at tls.msk.ru>
> ---
>  server/snd_worker.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/snd_worker.c b/server/snd_worker.c
> index 7bdd399..caffe67 100644
> --- a/server/snd_worker.c
> +++ b/server/snd_worker.c
> @@ -1420,10 +1420,10 @@ static void snd_set_record_peer(RedChannel *channel, RedClient *client, RedsStre
>      snd_record_send(worker->connection);
>      return;
>  
> -error_1:
> +error_2:
>      celt051_decoder_destroy(celt_decoder);
>  
> -error_2:
> +error_1:
>      celt051_mode_destroy(celt_mode);
>  }
>  
> -- 
> 1.7.9.5
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120417/c871fbd9/attachment.pgp>


More information about the Spice-devel mailing list