[libsoup] soup-body-output-stream: Fix unused value issues found by Coverity Scan and clang



commit 3c98f0bfaa782fba1a4a7ba0f39ad58089fb6732
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 25 14:50:29 2018 +0200

    soup-body-output-stream: Fix unused value issues found by Coverity Scan and clang
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781771

 libsoup/soup-body-output-stream.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/libsoup/soup-body-output-stream.c b/libsoup/soup-body-output-stream.c
index 314d7ee9..58e9b3ee 100644
--- a/libsoup/soup-body-output-stream.c
+++ b/libsoup/soup-body-output-stream.c
@@ -162,7 +162,6 @@ again:
        case SOUP_BODY_OUTPUT_STREAM_STATE_CHUNK_SIZE:
                g_snprintf (buf, sizeof (bostream->priv->buf),
                            "%lx\r\n", (gulong)count);
-               len = strlen (buf);
 
                if (count > 0)
                        bostream->priv->chunked_state = SOUP_BODY_OUTPUT_STREAM_STATE_CHUNK;
@@ -182,13 +181,11 @@ again:
 
        case SOUP_BODY_OUTPUT_STREAM_STATE_CHUNK_END:
                strncpy (buf, "\r\n", sizeof (bostream->priv->buf));
-               len = 2;
                bostream->priv->chunked_state = SOUP_BODY_OUTPUT_STREAM_STATE_DONE;
                break;
 
        case SOUP_BODY_OUTPUT_STREAM_STATE_TRAILERS:
                strncpy (buf, "\r\n", sizeof (bostream->priv->buf));
-               len = 2;
                bostream->priv->chunked_state = SOUP_BODY_OUTPUT_STREAM_STATE_DONE;
                break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]