Skip to content

Commit

Permalink
Don't look for executable at empty path
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Mar 17, 2016
1 parent c53b8ec commit 79440a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/standardpaths.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ private {
import std.array;
import std.path;
import std.file;
import std.algorithm : splitter, canFind;
import std.algorithm : splitter, canFind, filter;
import std.exception;
import std.range;

Expand Down Expand Up @@ -898,6 +898,10 @@ private string checkExecutable(string filePath) nothrow @trusted {
} else if (fileName == fileName.baseName) {
string toReturn;
foreach(string path; paths) {
if (path.empty) {
continue;
}

string candidate = buildPath(absolutePath(path), fileName);

version(Windows) {
Expand Down

0 comments on commit 79440a1

Please sign in to comment.