mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Libc (BSD): always initialize variables
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
const char* ffDetectLibc(FFLibcResult* result)
|
||||
{
|
||||
result->name = "Unknown";
|
||||
result->version = NULL;
|
||||
|
||||
#ifdef __DragonFly__ // We define `__FreeBSD__` on DragonFly BSD for simplification
|
||||
result->name = "DF";
|
||||
#ifdef FF_DF_VERSION
|
||||
@@ -12,9 +15,7 @@ const char* ffDetectLibc(FFLibcResult* result)
|
||||
#ifdef FF_FBSD_VERSION
|
||||
result->version = FF_FBSD_VERSION;
|
||||
#endif
|
||||
#else
|
||||
result->name = "Unknown";
|
||||
result->version = NULL;
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user