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:
parent
a0cc3f8558
commit
39cbd83837
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142289
@ -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)");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user