]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don’t construct std::string from nullptr
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Apr 2020 16:14:45 +0000 (18:14 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Apr 2020 16:14:45 +0000 (18:14 +0200)
As suggested by clang-tidy.

src/execute.cpp

index 7fa5832c8cdfac856f742f6c6aaf140d4adb6bfa..83c689c8db1ceda83815e4d8081c247bfb5660f5 100644 (file)
@@ -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