]> Git Repo - qemu.git/commit
usb/dev-mtp: Fix use of uninitialized values
authorPhilippe Mathieu-Daudé <[email protected]>
Mon, 4 Jun 2018 15:14:20 +0000 (12:14 -0300)
committerGerd Hoffmann <[email protected]>
Tue, 12 Jun 2018 10:07:02 +0000 (12:07 +0200)
commit62713a2e50f653162387451034f1a2490e87be88
tree0de7b467bb475b024faf5972f3b7c575c1b13c71
parentbf78fb1c1b61a819a47f7a1dbecf9934b9f32a0d
usb/dev-mtp: Fix use of uninitialized values

This fixes:

  hw/usb/dev-mtp.c:971:5: warning: 4th function call argument is an uninitialized value
      trace_usb_mtp_op_get_partial_object(s->dev.addr, o->handle, o->path,
                                           c->argv[1], c->argv[2]);
                                                       ^~~~~~~~~~
and:

  hw/usb/dev-mtp.c:981:12: warning: Assigned value is garbage or undefined
      offset = c->argv[1];
               ^ ~~~~~~~~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20180604151421[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/dev-mtp.c
This page took 0.023239 seconds and 4 git commands to generate.