projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c59ce
)
Change strerror so that it never returns an empty string.
author
Bruno Haible
<bruno@clisp.org>
Fri, 26 Oct 2007 22:41:22 +0000
(
00:41
+0200)
committer
Bruno Haible
<bruno@clisp.org>
Fri, 26 Oct 2007 22:41:22 +0000
(
00:41
+0200)
ChangeLog
patch
|
blob
|
history
lib/strerror.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 877b6653857bd6bee72c055afc43bfd794770387..e5ea16c6df0b37b96b16ff1127e355976bf53c69 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,8
@@
+2007-10-26 Bruno Haible <bruno@clisp.org>
+
+ * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
+ strerror returned the empty string. Needed on HP-UX 11.00.
+
2007-10-24 Micah Cowan <micah@cowan.name>
Remove vestiges of cvs-gnulib-checkout process. Now we use git.
diff --git
a/lib/strerror.c
b/lib/strerror.c
index 9b9ffd104d57353c534b639ba8f6dbb2fa941b06..9fe437db78df8a661bb2f6709b8d943b102832cc 100644
(file)
--- a/
lib/strerror.c
+++ b/
lib/strerror.c
@@
-35,7
+35,7
@@
rpl_strerror (int n)
{
char *result = strerror (n);
- if (
! result
)
+ if (
result == NULL || result[0] == '\0'
)
{
static char const fmt[] = "Unknown error (%d)";
static char mesg[sizeof fmt + INT_STRLEN_BOUND (n)];