ffStrbufLastIndexC: account for empty strings

#285
This commit is contained in:
Linus Dierheimer
2022-10-11 12:37:54 +02:00
parent cdcac06dbf
commit d54f14a14c
2 changed files with 3 additions and 1 deletions
@@ -224,7 +224,6 @@ static void getShellVersionZsh(FFstrbuf* exe, FFstrbuf* version)
"--version",
NULL
});
ffStrbufTrimRight(version, '\n');
ffStrbufSubstrBeforeLastC(version, ' ');
ffStrbufSubstrAfterFirstC(version, ' ');
}