mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-04-10 23:41:35 +00:00
Fix matchfiles for NULL path
This commit is contained in:
parent
8ddc1ef8aa
commit
1211991144
Binary file not shown.
@ -48,7 +48,7 @@ export def matchList(pathstr, exp)#2
|
||||
if not dirbuf
|
||||
dirbuf = heapallocalign(512, 8, 0)
|
||||
fin
|
||||
if not ^pathstr
|
||||
if not (pathstr and ^pathstr)
|
||||
fileio:getpfx(@curpath)
|
||||
pathstr = @curpath
|
||||
fin
|
||||
|
@ -139,7 +139,7 @@ while ^arg
|
||||
struprcpy(@wildfile, arg)
|
||||
entrylist, entrycnt = matchList(NULL, @wildfile)
|
||||
if not entrylist
|
||||
puts(arg); puts(" ???\n")
|
||||
puts(@wildfile); puts(" ???\n")
|
||||
else
|
||||
if not srcfilelist
|
||||
srcfilelist = entrylist
|
||||
|
Loading…
x
Reference in New Issue
Block a user