Skip to content

Commit

Permalink
fs: Optimize error messages check
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmMoltony committed Feb 3, 2024
1 parent 9d5e59f commit 4c52a0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
*/
static bool _errorMessages(void)
{
return mtnconfigGetBool("fsErrorMessages");
static int em = -1;
if (em == -1)
em = mtnconfigGetBool("fsErrorMessages");
return (bool)em;
}

fsInitStatus fsInit(void)
Expand Down

0 comments on commit 4c52a0a

Please sign in to comment.