mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Fix "pkg_version -Io" coredump, if some packages have no origin at
all. PR: bin/101932 Submitted by: novel, sat MFC after: 5 days
This commit is contained in:
parent
07ff6a18a7
commit
b041cda4ed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161251
@ -259,7 +259,7 @@ show_version(Package plist, const char *latest, const char *source)
|
||||
|
||||
if (!plist.name || strlen(plist.name) == 0)
|
||||
return;
|
||||
if (ShowOrigin != FALSE)
|
||||
if (ShowOrigin != FALSE && plist.origin != NULL)
|
||||
strlcpy(tmp, plist.origin, PATH_MAX);
|
||||
else {
|
||||
strlcpy(tmp, plist.name, PATH_MAX);
|
||||
|
Loading…
Reference in New Issue
Block a user