summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-01 19:14:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-01 19:14:47 +0000
commitbc534aaaae5b3698ae46dd11f81345af9e6f145c (patch)
treeb04e9162a3dab222fa68da20d6b9d4df3a3faf7d
parent3ed176b8f3a673cc387cce988c203235987c8af5 (diff)
if no error, dlerror() should return NULL
-rw-r--r--lib/csu/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/csu/common.c b/lib/csu/common.c
index 1223faa6087..4ae709a3366 100644
--- a/lib/csu/common.c
+++ b/lib/csu/common.c
@@ -209,6 +209,8 @@ dlerror()
(*ld_entry->dlctl)(NULL, DL_GETERRNO, &error) == -1)
return "Service unavailable";
+ if (error == 0)
+ return NULL;
return (char *)strerror(error);
}