diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2020-07-21 11:04:41 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-07-21 11:04:41 -0300 |
commit | 84df9d00723738e7bfa1fd0045104e9c521a8df8 (patch) | |
tree | 93229015022fd579dd956dfbb0a7a4a26e2441fc | |
parent | 0953c89d2c73b8cfd59b470b2da3b7a04a654269 (diff) | |
download | luarocks-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.lua | 2 |
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) | |||
239 | end | 239 | end |
240 | 240 | ||
241 | local function show_rock(template, namespace, name, version, rockspec, repo, minfo, tree) | 241 | local 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, |