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 | b9e03b404de05d4a7de4a046cbd88b765b3e5f9d (patch) | |
tree | dd71088c29dae4104152e6e4ca1b2dc69fc6d0df /package/utils/usbreset/src/usbreset.c | |
parent | ee97389a054fca0fcddc71ed85e6299c8ecb5889 (diff) | |
download | master-187ad058-b9e03b404de05d4a7de4a046cbd88b765b3e5f9d.tar.gz master-187ad058-b9e03b404de05d4a7de4a046cbd88b765b3e5f9d.tar.bz2 master-187ad058-b9e03b404de05d4a7de4a046cbd88b765b3e5f9d.zip |
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
Diffstat (limited to 'package/utils/usbreset/src/usbreset.c')
-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]; |