aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-07-21 11:04:41 -0300
committerHisham Muhammad <hisham@gobolinux.org>2020-07-21 11:04:41 -0300
commit84df9d00723738e7bfa1fd0045104e9c521a8df8 (patch)
tree93229015022fd579dd956dfbb0a7a4a26e2441fc
parent0953c89d2c73b8cfd59b470b2da3b7a04a654269 (diff)
downloadluarocks-84df9d00723738e7bfa1fd0045104e9c521a8df8.tar.gz
luarocks-84df9d00723738e7bfa1fd0045104e9c521a8df8.tar.bz2
luarocks-84df9d00723738e7bfa1fd0045104e9c521a8df8.zip
show: don't crash when rockspec description is empty
-rw-r--r--src/luarocks/cmd/show.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/cmd/show.lua b/src/luarocks/cmd/show.lua
index c5188538..c1c155e2 100644
--- a/src/luarocks/cmd/show.lua
+++ b/src/luarocks/cmd/show.lua
@@ -239,7 +239,7 @@ local function indirect_deps(mdeps, rdeps, tree)
239end 239end
240 240
241local function show_rock(template, namespace, name, version, rockspec, repo, minfo, tree) 241local function show_rock(template, namespace, name, version, rockspec, repo, minfo, tree)
242 local desc = rockspec.description 242 local desc = rockspec.description or {}
243 local data = { 243 local data = {
244 namespace = namespace, 244 namespace = namespace,
245 package = rockspec.package, 245 package = rockspec.package,