diff options
author | Junkyeong Kim <jk0430.kim@samsung.com> | 2016-06-30 22:16:43 +0900 |
---|---|---|
committer | Junkyeong Kim <jk0430.kim@samsung.com> | 2016-06-30 22:16:48 +0900 |
commit | 822d0cb822efecd4a5985ae3e5f51b437690f639 (patch) | |
tree | 57a29960d4293b94cc29b2ed108108886351dcbc /src | |
parent | e0c4c550c02d9b4b6635d27b0ee3bdcbfa819fcd (diff) | |
download | libpciaccess-tizen_3.0_tv.tar.gz libpciaccess-tizen_3.0_tv.tar.bz2 libpciaccess-tizen_3.0_tv.zip |
initialize buf, use integer variable for readtizen_4.0.m1_releasesubmit/tizen_unified/20170308.100414submit/tizen_common/20160701.180000submit/tizen_4.0/20170828.100006submit/tizen_4.0/20170811.094300submit/tizen_3.0_wearable/20161015.000003submit/tizen_3.0_tv/20161015.000003submit/tizen_3.0_mobile/20161015.000004submit/tizen_3.0_ivi/20161010.000004submit/tizen_3.0_common/20161104.104000submit/tizen_3.0.m2/20170104.093753submit/tizen/20160701.013624accepted/tizen/wearable/20160701.043845accepted/tizen/unified/20170309.035957accepted/tizen/tv/20160701.044042accepted/tizen/mobile/20160701.044022accepted/tizen/ivi/20160701.044109accepted/tizen/common/20160703.130852accepted/tizen/4.0/unified/20170828.222830accepted/tizen/4.0/unified/20170816.013530accepted/tizen/3.0/wearable/20161015.083153accepted/tizen/3.0/tv/20161016.004849accepted/tizen/3.0/mobile/20161015.033626accepted/tizen/3.0/ivi/20161011.050513accepted/tizen/3.0/common/20161114.111031accepted/tizen/3.0.m2/wearable/20170105.025008accepted/tizen/3.0.m2/tv/20170105.024838accepted/tizen/3.0.m2/mobile/20170105.024655tizen_3.0_tvtizen_3.0.m2tizen_3.0accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_commonaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobile
Change-Id: I6c3971a78581e90122ae6b9a95b6d4f99bde7a46
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/common_bridge.c | 2 | ||||
-rw-r--r-- | src/linux_sysfs.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common_bridge.c b/src/common_bridge.c index b4b5d7e..e6197af 100644 --- a/src/common_bridge.c +++ b/src/common_bridge.c @@ -56,7 +56,7 @@ static int read_bridge_info( struct pci_device_private * priv ) { - uint8_t buf[0x40]; + uint8_t buf[0x40] = {0, }; pciaddr_t bytes; int err; diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c index 97fcf36..ce6f295 100644 --- a/src/linux_sysfs.c +++ b/src/linux_sysfs.c @@ -247,13 +247,14 @@ pci_device_linux_sysfs_probe( struct pci_device * dev ) dev->func ); fd = open( name, O_RDONLY | O_CLOEXEC); if ( fd != -1 ) { + int ret; char * next; pciaddr_t low_addr; pciaddr_t high_addr; pciaddr_t flags; - bytes = read( fd, resource, 512 ); + ret = read( fd, resource, 512 ); resource[511] = '\0'; close( fd ); |