Small improvements to code quality

This commit is contained in:
Linus Dierheimer
2022-02-12 22:30:57 +01:00
parent a7728f61fb
commit 451848f6fd
7 changed files with 24 additions and 38 deletions
+2 -2
View File
@@ -197,9 +197,9 @@ static void printGPUResult(FFinstance* instance, uint8_t index, FFcache* cache,
ffStrbufSubstrAfterFirstC(&namePretty, '[');
FFstrbuf gpu;
ffStrbufInitA(&gpu, result->vendor.length + namePretty.length);
ffStrbufInitA(&gpu, result->vendor.length + 1 + namePretty.length);
if(*vendorPretty != '\0')
if(ffStrSet(vendorPretty))
{
ffStrbufAppendS(&gpu, vendorPretty);
ffStrbufAppendC(&gpu, ' ');