svn commit: r320859 - head/sbin/camcontrol
Ngie Cooper
ngie at FreeBSD.org
Mon Jul 10 04:28:29 UTC 2017
Author: ngie
Date: Mon Jul 10 04:28:28 2017
New Revision: 320859
URL: https://svnweb.freebsd.org/changeset/base/320859
Log:
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)
Modified:
head/sbin/camcontrol/camcontrol.c
Modified: head/sbin/camcontrol/camcontrol.c
==============================================================================
--- head/sbin/camcontrol/camcontrol.c Mon Jul 10 03:38:17 2017 (r320858)
+++ head/sbin/camcontrol/camcontrol.c Mon Jul 10 04:28:28 2017 (r320859)
@@ -7360,7 +7360,7 @@ mmcsdcmd(struct cam_device *device, int argc, char **a
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;
More information about the svn-src-head
mailing list