Philippe Mathieu-Daudé
62713a2e50
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>
2018-06-12 12:07:02 +02:00
..
2018-04-27 10:57:09 +02:00
2018-05-18 09:41:17 +02:00
2018-01-26 07:59:33 +01:00
2018-02-09 10:40:30 +00:00
2018-06-01 19:20:38 +03:00
2018-06-01 19:20:38 +03:00
2018-06-01 19:20:38 +03:00
2018-06-01 19:20:38 +03:00
2018-06-01 19:20:38 +03:00
2018-06-01 19:20:38 +03:00
2018-06-12 12:07:02 +02:00
2018-06-01 19:20:38 +03:00
2018-06-01 19:20:38 +03:00
2018-06-01 19:20:38 +03:00
2018-06-04 10:15:16 +01:00
2018-06-01 19:20:38 +03:00
2018-06-01 19:20:38 +03:00
2018-01-22 09:46:18 +01:00
2018-02-08 21:06:41 +02:00
2018-05-07 11:10:42 +02:00
2018-01-26 07:15:08 +01:00
2018-02-09 10:40:30 +00:00
2018-06-12 12:07:02 +02:00
2018-05-04 18:05:50 +01:00
2018-05-22 11:43:21 -07:00