summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-24 17:41:31 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-30 17:15:54 +0200
commit6d0ee5d2df1b0a479465c82c41a87a9bfc2007e6 (patch)
tree551af09879eaf986fc94dcf11f8dacc3a8e0116a /src/bindings
parentbf2ac6c93710f36882f91c7895a04bb8dce8ce3d (diff)
eolian: return real nil on parse failure
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index c8cb85a..ea4b8ab 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -449,7 +449,11 @@ M.system_directory_scan = function()
449end 449end
450 450
451M.file_parse = function(fpath) 451M.file_parse = function(fpath)
452 return eolian.eolian_file_parse(fpath) 452 local v = eolian.eolian_file_parse(fpath)
453 if v == nil then
454 return nil
455 end
456 return v
453end 457end
454 458
455M.all_eo_files_parse = function() 459M.all_eo_files_parse = function()