From: Joel Rosdahl Date: Mon, 27 Apr 2020 16:14:45 +0000 (+0200) Subject: Don’t construct std::string from nullptr X-Git-Tag: v4.0~519 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35ee06686ee67bbdbc6d21b4f725f43ec269f37f;p=thirdparty%2Fccache.git Don’t construct std::string from nullptr As suggested by clang-tidy. --- diff --git a/src/execute.cpp b/src/execute.cpp index 7fa5832c8..83c689c8d 100644 --- a/src/execute.cpp +++ b/src/execute.cpp @@ -330,7 +330,7 @@ find_executable_in_path(const char* name, const char* path) { if (!path) { - return nullptr; + return {}; } // Search the path looking for the first compiler of the right name that