aboutsummaryrefslogtreecommitdiff
path: root/src/quicktune_shortcutter.h
diff options
context:
space:
mode:
authorDiego Martinez <kaeza@users.sf.net>2016-02-04 09:58:44 -0300
committerest31 <MTest31@outlook.com>2016-02-08 01:55:02 +0100
commit430195381d8d7254a7b8cdcf6b50769c2c598329 (patch)
tree85ec4954e87f407c38670ce37df2dd53c7ea9f64 /src/quicktune_shortcutter.h
parent16c70087711db38ac40a428c64623355b8e7691b (diff)
downloadminetest-430195381d8d7254a7b8cdcf6b50769c2c598329.tar.gz
minetest-430195381d8d7254a7b8cdcf6b50769c2c598329.tar.bz2
minetest-430195381d8d7254a7b8cdcf6b50769c2c598329.zip
builtin: Fix `print` crashing on nil "holes".
The engine implementation of `print` packs the varargs into a table and passes the table directly to `table.concat`. If you pass any value not supported by `table.concat` (particularly `nil`), the server crashes. This is unexpected behavior, as `print` is supposed to be able to work with anything. This patch changes the implementation so it first converts all arguments using `tostring`, which fixes the issue and makes the custom `print` function compatible with the stock Lua behavior.
Diffstat (limited to 'src/quicktune_shortcutter.h')
0 files changed, 0 insertions, 0 deletions