MFH: r370352

- Fix checking unitialized variable
- While here, add LICENSE

PR:		194210
Submitted by:	enslay@gmail.com
Approved by:	portmgr (bdrewery)