fix unitialized value error in release build

This commit is contained in:
devsaurus 2017-04-21 14:53:54 +02:00
parent ebee637a53
commit 587bfd4084
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ static int ldht_read_generic( lua_State *L, ldht_type_t type )
break;
default:
res = LDHT_INVALID_VALUE;
temp = humi = 0;
break;
}
lua_pushinteger( L, res );