diff options
author | kientzle <kientzle@FreeBSD.org> | 2005-02-23 06:57:04 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2005-02-23 06:57:04 +0000 |
commit | 5558a3650b1fafa8132b1f92dada422f740e4681 (patch) | |
tree | c9c9f4cc82c771bab11a0991fce1c52ac668e097 /lib/libarchive/archive_util.c | |
parent | 9b2bcce14fc854a2eee9f24e404c94693f0651df (diff) | |
download | FreeBSD-src-5558a3650b1fafa8132b1f92dada422f740e4681.zip FreeBSD-src-5558a3650b1fafa8132b1f92dada422f740e4681.tar.gz |
Don't return NULL if there's no error message;
return a generic text message instead.
(Someday, I'll track down all the places that
are generating errors but not recording messages. ;-/
Thanks to: Jaakko Heinonen
Diffstat (limited to 'lib/libarchive/archive_util.c')
-rw-r--r-- | lib/libarchive/archive_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_util.c b/lib/libarchive/archive_util.c index 77b74ff..de9656d 100644 --- a/lib/libarchive/archive_util.c +++ b/lib/libarchive/archive_util.c @@ -65,7 +65,7 @@ archive_error_string(struct archive *a) if (a->error != NULL && *a->error != '\0') return (a->error); else - return (NULL); + return ("(Empty error message)"); } |