Commit 3a1bc175ea78fed181fae643fef47de06ce9a412
1 parent
db45c29a
allow '-nics 0'
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@802 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
vl.c
... | ... | @@ -2118,7 +2118,7 @@ int main(int argc, char **argv) |
2118 | 2118 | break; |
2119 | 2119 | case 16: |
2120 | 2120 | nb_nics = atoi(optarg); |
2121 | - if (nb_nics < 1 || nb_nics > MAX_NICS) { | |
2121 | + if (nb_nics < 0 || nb_nics > MAX_NICS) { | |
2122 | 2122 | fprintf(stderr, "qemu: invalid number of network interfaces\n"); |
2123 | 2123 | exit(1); |
2124 | 2124 | } | ... | ... |