Commit ff62ffc0 authored by Pape, David (FWCC) - 139658's avatar Pape, David (FWCC) - 139658
Browse files

Fix: Segmentation fault in main...

parent 1ebc2fac
Pipeline #23817 passed with stages
in 3 minutes and 44 seconds
cmake_minimum_required(VERSION 3.13) cmake_minimum_required(VERSION 3.13)
project(gitlab-hpc-runner project(gitlab-hpc-runner
VERSION 0.1.0 VERSION 0.1.1
LANGUAGES CXX LANGUAGES CXX
) )
......
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
* <tt>gitlab-hpc-runner (config | run \<script_path\> \<substage\> | cleanup)</tt> * <tt>gitlab-hpc-runner (config | run \<script_path\> \<substage\> | cleanup)</tt>
*/ */
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
char *h = nullptr; std::string h;
try { try {
std::getenv("HOME"); h = std::getenv("HOME");
} catch(...) { } catch(...) {
std::cerr << "Could not get home directory" << std::endl; std::cerr << "Could not get home directory" << std::endl;
return 50; return 50;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment