when kpdf.sh start with no argument, it will actuall pass in ""

This commit is contained in:
Qingping Hou
2013-03-15 22:12:19 -04:00
parent 8dd9e1ec5e
commit b2f0fe1c5d

View File

@@ -214,7 +214,7 @@ local last_file = G_reader_settings:readSetting("lastfile")
--87712cf0e43fed624f8a9f610be42b1fe174b9fe
if ARGV[argidx] then
if ARGV[argidx] and ARGV[argidx] ~= "" then
if lfs.attributes(ARGV[argidx], "mode") == "directory" then
showHomePage(ARGV[argidx])
elseif lfs.attributes(ARGV[argidx], "mode") == "file" then