mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 14:34:27 -05:00 
			
		
		
		
	usbreset: fix possible access to uninitialized variable (#15041)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 39738
This commit is contained in:
		
							parent
							
								
									8a87474b6e
								
							
						
					
					
						commit
						97c59cea1f
					
				@ -1,5 +1,5 @@
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2011-2013 OpenWrt.org
 | 
			
		||||
# Copyright (C) 2011-2014 OpenWrt.org
 | 
			
		||||
#
 | 
			
		||||
# This is free software, licensed under the GNU General Public License v2.
 | 
			
		||||
# See /LICENSE for more information.
 | 
			
		||||
@ -8,7 +8,7 @@
 | 
			
		||||
include $(TOPDIR)/rules.mk
 | 
			
		||||
 | 
			
		||||
PKG_NAME:=usbreset
 | 
			
		||||
PKG_RELEASE:=3
 | 
			
		||||
PKG_RELEASE:=4
 | 
			
		||||
 | 
			
		||||
include $(INCLUDE_DIR)/package.mk
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -65,7 +65,7 @@ struct usbentry {
 | 
			
		||||
 | 
			
		||||
static char *sysfs_attr(const char *dev, const char *attr)
 | 
			
		||||
{
 | 
			
		||||
	int fd, len;
 | 
			
		||||
	int fd, len = 0;
 | 
			
		||||
	char path[PATH_MAX];
 | 
			
		||||
	static char buf[129];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user