Removed code that duplicated nvpair_export().
Check envlist is not null before exporting!
Merge pull request #645 from dthain/master

Fix Crash if Environment Null