File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 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)
3636 for (i = 1 ; i <= nArgs ; ++ i ) {
3737 const char * name = lua_tostring (L , i );
3838
39+ if (name == NULL ) {
40+ continue ;
41+ }
42+
3943 /* Direct path to an embedded file? */
4044 if (name [0 ] == '$' && name [1 ] == '/' && premake_find_embedded_script (name + 2 )) {
4145 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 .
22
33``` lua
4- os .locate (" file_name " )
4+ os .locate (" file_name1 " , ... )
55```
66
77### Parameters ###
@@ -11,7 +11,7 @@ os.locate("file_name")
1111
1212### Return Value ###
1313
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.
1515
1616
1717### Availability ###
You can’t perform that action at this time.
0 commit comments