mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
usbreset: fix possible access to uninitialized variable (#15041)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39738 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user