DE (Linux): ensures process returns successfully before using its output

This commit is contained in:
李通洲
2026-01-21 14:28:40 +08:00
parent f08a1fb0b4
commit e26a05e3ac
+6 -5
View File
@@ -219,14 +219,15 @@ static const char* getTrinity(FFstrbuf* result, FF_MAYBE_UNUSED FFDEOptions* opt
return NULL;
ffStrbufClear(&path);
ffProcessAppendStdOut(&path, (char* const[]){
if (ffProcessAppendStdOut(&path, (char* const[]){
"tde-config",
"--version",
NULL
});
ffParsePropLines(path.chars , "TDE: ", result);
return NULL;
}) == NULL)
{
ffParsePropLines(path.chars , "TDE: ", result);
return NULL;
}
return "All methods failed";
}