Remove warning on used uninitialized variable

The default compilation makes the use of port an error because both
branches of the if have conditions.
Merge pull request #408 from cehoffman/patch-1

Remove warning on used uninitialized variable