diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 7cee50d12..7c5eb7601 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -131,7 +131,7 @@ namespace { if (obj.count("executable")) { if (!obj["executable"].is()) return "Loading " + fileName + " failed. executable must be a string."; - executable = obj["executable"].get(); + executable = getFullPath(obj["executable"].get(), exename); return ""; }