Skip to content

Commit

Permalink
app_lua: proper return 'nil' for $null values of pvs
Browse files Browse the repository at this point in the history
(cherry picked from commit fd3656f)
  • Loading branch information
miconda committed Sep 10, 2018
1 parent c26b2fa commit 4b05951
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/app_lua/app_lua_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,13 +888,12 @@ static int lua_sr_pv_push_val_null (lua_State *L, int rmode)
{
if(rmode==1) {
lua_pushlstring(L, "<<null>>", 8);
return 1;
} else if(rmode==2) {
lua_pushlstring(L, "", 0);
return 1;
} else {
return 0;
lua_pushnil(L);
}
return 1;
}

/**
Expand Down

0 comments on commit 4b05951

Please sign in to comment.