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-- 1.1 KB
arch_dump.c -rw-r--r-- 7.5 KB
cc_helper.c -rw-r--r-- 12.4 KB
cpu-qom.h -rw-r--r-- 2.0 KB
cpu.c -rw-r--r-- 13.5 KB
cpu.h -rw-r--r-- 23.7 KB
cpu_features.c -rw-r--r-- 27.8 KB
cpu_features.h -rw-r--r-- 3.4 KB
cpu_features_def.h -rw-r--r-- 7.9 KB
cpu_models.c -rw-r--r-- 42.7 KB
cpu_models.h -rw-r--r-- 4.2 KB
crypto_helper.c -rw-r--r-- 1.6 KB
diag.c -rw-r--r-- 5.3 KB
excp_helper.c -rw-r--r-- 17.5 KB
fpu_helper.c -rw-r--r-- 23.1 KB
gdbstub.c -rw-r--r-- 9.8 KB
gen-features.c -rw-r--r-- 19.5 KB
helper.c -rw-r--r-- 12.4 KB
helper.h -rw-r--r-- 9.2 KB
insn-data.def -rw-r--r-- 52.5 KB
insn-format.def -rw-r--r-- 2.4 KB
int_helper.c -rw-r--r-- 3.8 KB
internal.h -rw-r--r-- 16.4 KB
interrupt.c -rw-r--r-- 7.4 KB
ioinst.c -rw-r--r-- 19.9 KB
kvm-stub.c -rw-r--r-- 2.0 KB
kvm.c -rw-r--r-- 68.7 KB
kvm_s390x.h -rw-r--r-- 2.0 KB
machine.c -rw-r--r-- 8.1 KB
mem_helper.c -rw-r--r-- 71.6 KB
misc_helper.c -rw-r--r-- 14.9 KB
mmu_helper.c -rw-r--r-- 17.2 KB
sigp.c -rw-r--r-- 13.9 KB
trace-events -rw-r--r-- 1.1 KB
translate.c -rw-r--r-- 158.1 KB

back to top