diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pamela/pamelad.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pamela/pamelad.c b/src/pamela/pamelad.c index 0a55f66..f515841 100644 --- a/src/pamela/pamelad.c +++ b/src/pamela/pamelad.c @@ -140,6 +140,7 @@ static void do_strerror (int num) if (!x) { char c = errno ; + if (!c) c = EIO ; put(&c, 1) ; } else @@ -159,6 +160,7 @@ static void do_getenvlist (void) if (!envp) { char c = errno ; + if (!c) c = EIO ; put(&c, 1) ; } else |