diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index dc21d57a..637920e5 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -272,7 +272,7 @@ static const char* GetProcessName() if( buf ) processName = buf; # endif #elif defined _GNU_SOURCE || defined __CYGWIN__ - processName = program_invocation_short_name; + if( program_invocation_short_name ) processName = program_invocation_short_name; #elif defined __APPLE__ || defined BSD auto buf = getprogname(); if( buf ) processName = buf;