From 5ea71ea20da77be9c36ee339ae966a295eddd77a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 11 Feb 2021 18:12:59 +0100 Subject: [PATCH] Apparently program_invocation_short_name may be not defined. --- client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;