From 12774fe95f338b93a7a299d5601b5d50976f8c64 Mon Sep 17 00:00:00 2001 From: ngie Date: Mon, 10 Jul 2017 04:28:28 +0000 Subject: [PATCH] Fix -Wuninitialized warning with gcc Initialize mmc_data_byte to 0, as it could be used uninitialized later on. MFC with: r320846 Reported by: Jenkins (powerpc jobs) --- sbin/camcontrol/camcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 832c5a25b619..99765375aca7 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -7360,7 +7360,7 @@ mmcsdcmd(struct cam_device *device, int argc, char **argv, char *combinedopt, int is_highspeed = 0, is_stdspeed = 0; int is_info_request = 0; int flags = 0; - uint8_t mmc_data_byte; + uint8_t mmc_data_byte = 0; /* For IO_RW_EXTENDED command */ uint8_t *mmc_data = NULL;