fix unitialized value error in release build
This commit is contained in:
parent
ebee637a53
commit
587bfd4084
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue