Skip to content

Commit

Permalink
Improve error management
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanzimanyi committed Oct 5, 2023
1 parent e897cfc commit a783961
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meos/src/general/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int _meos_errno = 0;
/**
* @brief Read an error number
*/
static int
int
meos_errno(void)
{
return _meos_errno;
Expand All @@ -68,8 +68,7 @@ meos_errno_set(int err)
if (err == 0)
return 0;

meos_errno_set(err);
errno = err;
_meos_errno = err;
return err;
}

Expand Down

0 comments on commit a783961

Please sign in to comment.