Skip to content

Commit

Permalink
Fixed crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 24, 2013
1 parent d0cefa0 commit 39b43c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1pass.c
Expand Up @@ -28,7 +28,7 @@ static inline int retvalStringBytes(lua_State *L, const uint8_t *str, size_t len

static inline int retvalString(lua_State *L, const char *str)
{
return retvalStringBytes(L, (const uint8_t *) str, strlen(str));
return retvalStringBytes(L, (const uint8_t *) str, str ? strlen(str) : 0);
} // retvalString

static inline int retvalPointer(lua_State *L, void *ptr)
Expand Down

0 comments on commit 39b43c6

Please sign in to comment.