MFH: r370262

- Fix segfault (1)
- Fix duplicate PORTREVISION

PR:		194154 (1)
Submitted by:	rndfax@yandex.ru
Approved by:	portmgr