commit | 364e569945c044fd18c70ee1bc851364534aef97 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Tue Jun 09 16:12:01 2020 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Tue Jun 09 16:12:01 2020 -0300 |
tree | ad461207558d0452455a8180cf5d8b1e6e37d0be | |
parent | 63295f1f7fa052fabcb4d69d49203cf33a7deef0 [diff] |
Avoid calling 'fprintf' with NULL Avoid undefined behavior in calls like «fprintf("%s", NULL)». ('lua_writestringerror' is implemented as 'fprintf', and 'lua_tostring' can return NULL if object is not a string.)