Revision aba59705d963b79f5732f2265fa2175654b61db8 authored by Philippe Mathieu-Daudé on 04 June 2018, 15:14:20 UTC, committed by Michael Roth on 21 June 2018, 15:18:22 UTC
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>
(cherry picked from commit 62713a2e50f653162387451034f1a2490e87be88)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
1 parent 17e3fcb
History
File Mode Size
Makefile.objs -rw-r--r-- 123 bytes
README -rw-r--r-- 1.5 KB
TODO -rw-r--r-- 23 bytes
cpu-qom.h -rw-r--r-- 1.5 KB
cpu.c -rw-r--r-- 7.6 KB
cpu.h -rw-r--r-- 7.0 KB
gdbstub.c -rw-r--r-- 2.5 KB
helper.c -rw-r--r-- 6.4 KB
helper.h -rw-r--r-- 512 bytes
lm32-semi.c -rw-r--r-- 5.3 KB
machine.c -rw-r--r-- 1.1 KB
op_helper.c -rw-r--r-- 3.6 KB
translate.c -rw-r--r-- 33.4 KB

README

back to top