From 5e537ebdfe90bb0319465423c310ce4367281ae5 Mon Sep 17 00:00:00 2001 From: Laxmikant Rashinkar Date: Sun, 27 Jul 2014 12:57:13 -0700 Subject: [PATCH] coverity: explicit null dereferenced --- sesman/chansrv/sound.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sesman/chansrv/sound.c b/sesman/chansrv/sound.c index c699ffde..687bf883 100644 --- a/sesman/chansrv/sound.c +++ b/sesman/chansrv/sound.c @@ -1139,8 +1139,7 @@ sound_sndsrvr_source_data_in(struct trans *trans) in_uint8(ts, cmd); in_uint16_le(ts, bytes_req); - if (bytes_req != 0) - xstream_new(s, bytes_req + 2); + xstream_new(s, bytes_req + 2); if (cmd == PA_CMD_SEND_DATA) {