summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/src/iwinfo_lualib.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-10 00:38:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-10 00:38:02 +0000
commita85dd8ee6e2cfb83c0e602ec0f0b86e3a0b37298 (patch)
tree99a594238967b3180b294323f3b13a238216c998 /libs/iwinfo/src/iwinfo_lualib.h
parent1e4efd1355defe008bd29a2473b6b541e3e9c07b (diff)
libs/iwinfo: forgot to clear string buffer in wrapper function
Diffstat (limited to 'libs/iwinfo/src/iwinfo_lualib.h')
-rw-r--r--libs/iwinfo/src/iwinfo_lualib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/iwinfo/src/iwinfo_lualib.h b/libs/iwinfo/src/iwinfo_lualib.h
index 410a084f35..9840466f04 100644
--- a/libs/iwinfo/src/iwinfo_lualib.h
+++ b/libs/iwinfo/src/iwinfo_lualib.h
@@ -51,6 +51,7 @@
{ \
const char *ifname = luaL_checkstring(L, 1); \
char rv[IWINFO_BUFSIZE]; \
+ memset(rv, 0, IWINFO_BUFSIZE); \
if( !type##_get_##op(ifname, rv) ) \
lua_pushstring(L, rv); \
else \