mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
LM: init variables
Don't know why it didn't crash before
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
void ffPrintLM(FFinstance* instance, FFLMOptions* options)
|
||||
{
|
||||
FFLMResult result;
|
||||
ffStrbufInit(&result.service);
|
||||
ffStrbufInit(&result.type);
|
||||
const char* error = ffDetectLM(&result);
|
||||
|
||||
if(error)
|
||||
@@ -38,6 +40,8 @@ void ffPrintLM(FFinstance* instance, FFLMOptions* options)
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result.type},
|
||||
});
|
||||
}
|
||||
ffStrbufDestroy(&result.service);
|
||||
ffStrbufDestroy(&result.type);
|
||||
}
|
||||
|
||||
void ffInitLMOptions(FFLMOptions* options)
|
||||
|
||||
Reference in New Issue
Block a user