Free pointer to file

This commit is contained in:
saloniamatteo
2021-03-20 10:46:56 +01:00
parent e531278e62
commit e2986b198f
+3 -7
View File
@@ -12,6 +12,7 @@ void ffPrintLocale(FFinstance* instance)
char localeCode[256];
FILE *fp;
/* Try to open /etc/locale.conf in read-only mode */
fp = fopen("/etc/locale.conf", "r");
/* File does not exist */
@@ -21,13 +22,8 @@ void ffPrintLocale(FFinstance* instance)
ffParsePropFile("/etc/locale.conf", "LANG=%[^\n]", localeCode);
}
/*
if(localeCode[0] == '\0' && ffStrbufIsEmpty(&instance->config.localeFormat))
{
ffPrintError(instance, "Locale", "\"LANG=%[^\\n]\" not found in \"/etc/locale.conf\"");
return;
}
*/
/* Free pointer to file */
fclose(fp);
ffPrintLogoAndKey(instance, "Locale");