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);
|
close(fd);
|
||||||
netvm_id[n] = 0;
|
netvm_id[n] = 0;
|
||||||
n = atoi(netvm_id);
|
n = atoi(netvm_id);
|
||||||
if (n <= 0) {
|
|
||||||
fprintf(stderr, "bad netvm id\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user