diff options
| author | Markus Armbruster <armbru@redhat.com> | 2011-11-16 15:45:59 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-11-22 11:11:23 +0000 |
| commit | e30e5eb6136aa3311dad4ca90f6546e05ae98f92 (patch) | |
| tree | edf136192a0ba716ae2e4660f9d57c4f07be71b6 /scripts/qapi.py | |
| parent | 40897c9c160393df922dfdb59cfa210048d3071d (diff) | |
| download | focaccia-qemu-e30e5eb6136aa3311dad4ca90f6546e05ae98f92.tar.gz focaccia-qemu-e30e5eb6136aa3311dad4ca90f6546e05ae98f92.zip | |
slirp: Clean up net_slirp_hostfwd_remove()'s use of get_str_sep()
get_str_sep() can fail, but net_slirp_hostfwd_remove() doesn't check. Works, because it initializes buf[] to "", which get_str_sep() doesn't touch when it fails. Coverity doesn't like it, and neither do I. Change it to work exactly like slirp_hostfwd(). Acked-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions