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:
Jo-Philipp Wich
2014-02-23 23:42:12 +00:00
parent 8a87474b6e
commit 97c59cea1f
2 changed files with 3 additions and 3 deletions

View File

@@ -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];