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)
project(gitlab-hpc-runner
VERSION 0.1.0
VERSION 0.1.1
LANGUAGES CXX
)
......
......@@ -28,9 +28,9 @@
* <tt>gitlab-hpc-runner (config | run \<script_path\> \<substage\> | cleanup)</tt>
*/
int main(int argc, char *argv[]) {
char *h = nullptr;
std::string h;
try {
std::getenv("HOME");
h = std::getenv("HOME");
} catch(...) {
std::cerr << "Could not get home directory" << std::endl;
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