diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2018-06-04 12:14:20 -0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-06-12 12:07:02 +0200 |
commit | 62713a2e50f653162387451034f1a2490e87be88 (patch) | |
tree | 0de7b467bb475b024faf5972f3b7c575c1b13c71 /hw/scsi | |
parent | bf78fb1c1b61a819a47f7a1dbecf9934b9f32a0d (diff) | |
download | qemu-62713a2e50f653162387451034f1a2490e87be88.zip qemu-62713a2e50f653162387451034f1a2490e87be88.tar.gz qemu-62713a2e50f653162387451034f1a2490e87be88.tar.bz2 |
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é <f4bug@amsat.org>
Message-id: 20180604151421.23385-3-f4bug@amsat.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/scsi')
0 files changed, 0 insertions, 0 deletions