diff options
Diffstat (limited to 'lib/libc/locale/euc.c')
-rw-r--r-- | lib/libc/locale/euc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/euc.c b/lib/libc/locale/euc.c index 43194fa..596d107a 100644 --- a/lib/libc/locale/euc.c +++ b/lib/libc/locale/euc.c @@ -78,7 +78,7 @@ _EUC_init(rl) ++v; if ((ei = malloc(sizeof(_EucInfo))) == NULL) - return (ENOMEM); + return (errno == 0 ? ENOMEM : errno); new__mb_cur_max = 0; for (x = 0; x < 4; ++x) { |