scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 09de064a1297f7af75ad918311c63641629a43ed
parent f769c4f5a9b0c0a59fb1b9093b3def0d628897db
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  7 Dec 2017 09:36:48 +0000

[lib/c] Fix atexit() errno value

Diffstat:
Mlib/c/src/atexit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/c/src/atexit.c b/lib/c/src/atexit.c @@ -9,7 +9,7 @@ int atexit(void (*fun)(void)) { if (_exitn == _ATEXIT_MAX) { - errno = ENOMEN; + errno = ENOMEM; return -1; } _exitf[_exitn++] = fun;