warning: The 1st argument to 'getcwd' is NULL but should not be NULL [clang-analyzer-unix.StdCLibraryFunctions]
char* currentPath = getcwd(nullptr, 0);
^
"If buf is NULL [1st param], space is allocated as necessary to store the pathname and size [2nd param] is ignored. This space may later be free(3)'d."