diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-02-23 23:42:12 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-02-23 23:42:12 +0000 |
commit | 97c59cea1f6cb78839e2110acbcf705c5970886e (patch) | |
tree | a402d332ab1c20b9a95f5048c04739e7a6487bbb /package/utils/usbreset/src | |
parent | 8a87474b6e92ad2b801d2c8fbba83d0eaddbb824 (diff) | |
download | upstream-97c59cea1f6cb78839e2110acbcf705c5970886e.tar.gz upstream-97c59cea1f6cb78839e2110acbcf705c5970886e.tar.bz2 upstream-97c59cea1f6cb78839e2110acbcf705c5970886e.zip |
usbreset: fix possible access to uninitialized variable (#15041)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 39738
Diffstat (limited to 'package/utils/usbreset/src')
-rw-r--r-- | package/utils/usbreset/src/usbreset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/utils/usbreset/src/usbreset.c b/package/utils/usbreset/src/usbreset.c index f6f2ba288a..ead30b1d82 100644 --- a/package/utils/usbreset/src/usbreset.c +++ b/package/utils/usbreset/src/usbreset.c @@ -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]; |