From: Chris Rienzo Date: Fri, 3 May 2019 00:16:43 +0000 (+0000) Subject: FS-11785 [mod_local_stream] fix dead assignment X-Git-Tag: v1.10.0~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f612fab976f64639206a635c6befb9d2b2f5dd86;p=thirdparty%2Ffreeswitch.git FS-11785 [mod_local_stream] fix dead assignment --- diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index c317aebc70..99e99ebe3c 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -187,11 +187,11 @@ static inline void free_context(shout_context_t *context) len = lame_encode_buffer(context->gfp, blank, r, sizeof(blank) / 2, mp3buffer, sizeof(mp3buffer)); if (len) { - ret = fwrite(mp3buffer, 1, len, context->fp); + fwrite(mp3buffer, 1, len, context->fp); } while ((len = lame_encode_flush(context->gfp, mp3buffer, sizeof(mp3buffer))) > 0) { - ret = fwrite(mp3buffer, 1, len, context->fp); + fwrite(mp3buffer, 1, len, context->fp); } lame_mp3_tags_fid(context->gfp, context->fp); @@ -605,7 +605,7 @@ static void *SWITCH_THREAD_FUNC write_stream_thread(switch_thread_t *thread, voi } } else { memset(mp3buf, 0, 128); - ret = shout_send(context->shout, mp3buf, 128); + shout_send(context->shout, mp3buf, 128); } shout_sync(context->shout);