On Wed, 2013-05-22 at 13:33 +0200, David Henningsson wrote:
> This fixes a compiler warning when building under Ubuntu.
> 
> Signed-off-by: David Henningsson <[email protected]>
> ---
>  src/modules/rtp/rtp.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/modules/rtp/rtp.c b/src/modules/rtp/rtp.c
> index c094fcf..ee657a4 100644
> --- a/src/modules/rtp/rtp.c
> +++ b/src/modules/rtp/rtp.c
> @@ -286,7 +286,7 @@ int pa_rtp_recv(pa_rtp_context *c, pa_memchunk *chunk, 
> pa_mempool *pool, struct
>  
>      if (!found_tstamp) {
>          pa_log_warn("Couldn't find SCM_TIMESTAMP data in auxiliary recvmsg() 
> data!");
> -        memset(tstamp, 0, sizeof(tstamp));
> +        memset(tstamp, 0, sizeof(struct timeval));
>      }
>  
>      return 0;

pa_zero(*tstamp) could be used here.

-- 
Tanu

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to