summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
Diffstat (limited to 'builtin')
-rw-r--r--builtin/modmgr.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua
index bf71d8b1d..3256c3b9f 100644
--- a/builtin/modmgr.lua
+++ b/builtin/modmgr.lua
@@ -151,7 +151,11 @@ function modmgr.parse_register_line(line)
local pos3 = item:find(":")
if pos3 ~= nil then
- return item:sub(1,pos3-1)
+ local retval = item:sub(1,pos3-1)
+ if retval ~= nil and
+ retval ~= "" then
+ return retval
+ end
end
end
end