mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
More NULL pointer fixes
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
660f11be54
commit
7cba04f6de
7 changed files with 13 additions and 11 deletions
|
@ -1947,7 +1947,7 @@ static void unix_process_msgfd(CharDriverState *chr, struct msghdr *msg)
|
|||
static ssize_t tcp_chr_recv(CharDriverState *chr, char *buf, size_t len)
|
||||
{
|
||||
TCPCharDriver *s = chr->opaque;
|
||||
struct msghdr msg = { 0, };
|
||||
struct msghdr msg = { NULL, };
|
||||
struct iovec iov[1];
|
||||
union {
|
||||
struct cmsghdr cmsg;
|
||||
|
@ -2212,7 +2212,7 @@ CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*i
|
|||
CharDriverState *chr;
|
||||
|
||||
if (!strcmp(filename, "vc")) {
|
||||
chr = text_console_init(0);
|
||||
chr = text_console_init(NULL);
|
||||
} else
|
||||
if (strstart(filename, "vc:", &p)) {
|
||||
chr = text_console_init(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue