summaryrefslogtreecommitdiff
path: root/epan/wslua/wslua.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wslua/wslua.h')
-rw-r--r--epan/wslua/wslua.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h
index 333c179687..335adbb887 100644
--- a/epan/wslua/wslua.h
+++ b/epan/wslua/wslua.h
@@ -558,7 +558,7 @@ extern int wslua_set__index(lua_State *L);
char* str; \
if ((obj->member) && (obj->member->len > 0)) { \
if (wtap_block_get_string_option_value(g_array_index(obj->member, wtap_block_t, 0), option, &str) == WTAP_OPTTYPE_SUCCESS) { \
- lua_pushstring(L,str); /* this pushes nil if obj->member is null */ \
+ lua_pushstring(L,str); \
} \
} \
})
@@ -572,7 +572,7 @@ extern int wslua_set__index(lua_State *L);
char* str; \
if ((obj->member) && (obj->member->len > 0)) { \
if (wtap_block_get_nth_string_option_value(g_array_index(obj->member, wtap_block_t, 0), option, 0, &str) == WTAP_OPTTYPE_SUCCESS) { \
- lua_pushstring(L,str); /* this pushes nil if obj->member is null */ \
+ lua_pushstring(L,str); \
} \
} \
})