Coverity fixes: deref of stale pointer

I think this one was actually impossible to trigger.
This commit is contained in:
John Hood
2016-05-10 23:57:29 -04:00
parent c027112a88
commit da30bb74a2
+1
View File
@@ -213,6 +213,7 @@ int main( int argc, char *argv[] )
desired_port = optarg; desired_port = optarg;
break; break;
case 's': case 's':
desired_ip = NULL;
desired_ip_str = get_SSH_IP(); desired_ip_str = get_SSH_IP();
if ( !desired_ip_str.empty() ) { if ( !desired_ip_str.empty() ) {
desired_ip = desired_ip_str.c_str(); desired_ip = desired_ip_str.c_str();