strerror: work around FreeBSD bug
authorEric Blake <eblake@redhat.com>
Mon, 6 Jun 2011 21:16:26 +0000 (15:16 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 6 Jun 2011 21:35:36 +0000 (15:35 -0600)
commit4c91b77e3aa7c73244c8f89145620ea168811bba
treea5f812bf1d45a8a5d29f93c19b89f908e69a3ca3
parent207ca136e48759175e9920d9c51d53450a528477
strerror: work around FreeBSD bug

Breaking strerror away from strerror_r re-exposed the FreeBSD
strerror(0) bug.

* lib/strerror.c (strerror): Special case 0.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/strerror.c