diff options
Diffstat (limited to 'src/mod_magnet.c')
-rw-r--r-- | src/mod_magnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_magnet.c b/src/mod_magnet.c index 0d99fdf9..5a72ff15 100644 --- a/src/mod_magnet.c +++ b/src/mod_magnet.c @@ -646,7 +646,7 @@ static int magnet_cgi_get(lua_State *L) { lua_pop(L, 1); ds = (data_string *)array_get_element(con->environment, key); - if (!buffer_is_empty(ds->value)) + if (NULL != ds && !buffer_is_empty(ds->value)) lua_pushlstring(L, CONST_BUF_LEN(ds->value)); else lua_pushnil(L); |