File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ int os_locate(lua_State* L)
36
36
for (i = 1 ; i <= nArgs ; ++ i ) {
37
37
const char * name = lua_tostring (L , i );
38
38
39
+ if (name == NULL ) {
40
+ continue ;
41
+ }
42
+
39
43
/* Direct path to an embedded file? */
40
44
if (name [0 ] == '$' && name [1 ] == '/' && premake_find_embedded_script (name + 2 )) {
41
45
lua_pushvalue (L , i );
Original file line number Diff line number Diff line change 1
- Searches the [ Premake path] ( Locating-Scripts.md ) for a file .
1
+ Searches the [ Premake path] ( Locating-Scripts.md ) for files .
2
2
3
3
``` lua
4
- os .locate (" file_name " )
4
+ os .locate (" file_name1 " , ... )
5
5
```
6
6
7
7
### Parameters ###
@@ -11,7 +11,7 @@ os.locate("file_name")
11
11
12
12
### Return Value ###
13
13
14
- The full path to the file if found, or nil if the file could not be located.
14
+ The full path to the first file found, or nil if the files could not be located.
15
15
16
16
17
17
### Availability ###
You can’t perform that action at this time.
0 commit comments