On 02/17/2017 06:17 PM, Pavel Grunt wrote:
On Fri, 2017-02-17 at 10:01 -0600, Jonathon Jongsma wrote:
On Fri, 2017-02-17 at 13:44 +0100, Pavel Grunt wrote:
Spotted by coverity

Acked-by: Jonathon Jongsma <jjong...@redhat.com>

out of curiosity, what did coverity actually say here?


spice-gtk-0.33.53-7cb7-dirty/src/spice-gtk-session.c:920:9: note:
Value stored to 'new_len' during its initialization is never read
#    int new_len = *len;

An alternative fix can be simply not initialize new_len.
       int new_len;

new_len will be assigned a value in one of the if blocks.

This is just a nitpick, the suggested fix also works.


Uri.

#        ^~~~~~~   ~~~~
#  918|   {
#  919|       char *conv = NULL;
#  920|->     int new_len = *len;
#  921|
#  922|       if (spice_main_agent_test_capability(self->priv->main,
VD_AGENT_CAP_GUEST_LINEEND_CRLF)) {



_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to