Jens Osterkamp e23a22e620 qemu-sockets: avoid strlen of NULL pointer
If the user wants to create a chardev of type socket but forgets to give a
host= option, qemu_opt_get returns NULL. This NULL pointer is then fed into
strlen a few lines below without a check which results in a segfault.
This fixes it.

Signed-off-by: Jens Osterkamp <jens@linux.vnet.ibm.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2010-05-18 19:49:16 +02:00
2010-05-14 10:55:58 -05:00
2010-05-03 12:39:12 -05:00
2010-05-14 10:55:58 -05:00
2010-05-07 17:53:05 +00:00
2010-05-07 16:28:10 +00:00
2010-05-17 10:20:05 +02:00
2010-04-28 13:41:14 -03:00
2010-05-05 16:32:59 +01:00
2010-05-11 14:02:22 -03:00
2010-04-25 12:59:33 +00:00
2010-05-14 19:32:21 +00:00
2010-05-11 14:02:21 -03:00
2010-05-10 11:36:03 -05:00
2010-05-10 11:36:03 -05:00
2010-05-03 12:09:47 -05:00
2010-05-03 12:39:12 -05:00
2010-05-11 14:02:22 -03:00
2010-05-17 10:20:04 +02:00
2010-05-03 12:09:48 -05:00
2010-05-15 14:23:31 +00:00
2010-05-10 11:36:03 -05:00
2010-05-03 12:09:47 -05:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%