summaryrefslogtreecommitdiff
path: root/package/wprobe/src
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-07-07 03:21:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-07-07 03:21:09 +0000
commit5b35d1851c1ec93f039f81e4f5c5900a4f778888 (patch)
tree688c4383b9a5e8716d1580dbf9a3308123e1d878 /package/wprobe/src
parent9a194f41bb953a72c8fbf7e0364ce88dfc5a6da0 (diff)
downloadmtk-20170518-5b35d1851c1ec93f039f81e4f5c5900a4f778888.zip
mtk-20170518-5b35d1851c1ec93f039f81e4f5c5900a4f778888.tar.gz
mtk-20170518-5b35d1851c1ec93f039f81e4f5c5900a4f778888.tar.bz2
wprobe: fix uninitialized variable
SVN-Revision: 16731
Diffstat (limited to 'package/wprobe/src')
-rw-r--r--package/wprobe/src/user/wprobe-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/wprobe/src/user/wprobe-util.c b/package/wprobe/src/user/wprobe-util.c
index d5d440a..72feece 100644
--- a/package/wprobe/src/user/wprobe-util.c
+++ b/package/wprobe/src/user/wprobe-util.c
@@ -296,7 +296,7 @@ static int run_proxy(int port)
return 1;
}
while(1) {
- unsigned int addrlen;
+ unsigned int addrlen = sizeof(struct sockaddr_in);
int ret, c;
c = accept(s, (struct sockaddr *)&sa, &addrlen);