1pass.c
changeset 15 e2973f4fb366
parent 12 6a2d5b34d5ca
child 16 f5a7ede6c1f3
--- a/1pass.c	Mon Dec 23 20:44:04 2013 -0500
+++ b/1pass.c	Mon Dec 23 23:47:51 2013 -0500
@@ -28,7 +28,7 @@
 
 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)