usbreset: fix possible access to uninitialized variable (#15041)
[openwrt.git] / package / utils / usbreset / src / usbreset.c
index f6f2ba2..ead30b1 100644 (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];