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
This commit is contained in:
Tim Kientzle 2005-02-23 06:57:04 +00:00
parent a0cc3f8558
commit 39cbd83837
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142289

View File

@ -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)");
}