summaryrefslogtreecommitdiff
path: root/src/port/string.c
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-02-16 17:18:52 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-02-16 17:18:52 +0100
commit6ac05a1ec304b27ecc1111ec735b69469323e922 (patch)
treea9c874a154bb3c69f5865d9b038a0884e814df2e /src/port/string.c
parent3e519439f5483808a59a4a492528b35a698167cd (diff)
downloadwolfbones-6ac05a1ec304b27ecc1111ec735b69469323e922.tar.gz
wolfbones-6ac05a1ec304b27ecc1111ec735b69469323e922.tar.bz2
some comments on strerror_r
Diffstat (limited to 'src/port/string.c')
-rw-r--r--src/port/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/port/string.c b/src/port/string.c
index 20e2bed..846b068 100644
--- a/src/port/string.c
+++ b/src/port/string.c
@@ -61,6 +61,7 @@ int wolf_strerror_r( int num, char *buf, size_t buflen ) {
* is not really acceptable.
*/
if( msg == NULL ) {
+ /* Linux returns an empty string in this case, why? */
len = snprintf( buf, buflen, "Unknown error %d", num );
errno = EINVAL;
return -1;