mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-24 00:18:36 -07:00
allow '-nics 0'
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@802 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
db45c29a65
commit
3a1bc175ea
1 changed files with 1 additions and 1 deletions
2
vl.c
2
vl.c
|
|
@ -2118,7 +2118,7 @@ int main(int argc, char **argv)
|
|||
break;
|
||||
case 16:
|
||||
nb_nics = atoi(optarg);
|
||||
if (nb_nics < 1 || nb_nics > MAX_NICS) {
|
||||
if (nb_nics < 0 || nb_nics > MAX_NICS) {
|
||||
fprintf(stderr, "qemu: invalid number of network interfaces\n");
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue