dispvm: fix non-networked DispVM
The 'netvm-id.txt' will be empty in this case.
This commit is contained in:
parent
849cfbf826
commit
c57c5fc107
@ -378,10 +378,6 @@ int get_netvm_id_from_name(const char *name)
|
||||
close(fd);
|
||||
netvm_id[n] = 0;
|
||||
n = atoi(netvm_id);
|
||||
if (n <= 0) {
|
||||
fprintf(stderr, "bad netvm id\n");
|
||||
exit(1);
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user