summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2005-02-23 06:57:04 +0000
committerkientzle <kientzle@FreeBSD.org>2005-02-23 06:57:04 +0000
commit5558a3650b1fafa8132b1f92dada422f740e4681 (patch)
treec9c9f4cc82c771bab11a0991fce1c52ac668e097 /lib/libarchive
parent9b2bcce14fc854a2eee9f24e404c94693f0651df (diff)
downloadFreeBSD-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')
-rw-r--r--lib/libarchive/archive_util.c2
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)");
}
OpenPOWER on IntegriCloud