diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-01 10:13:20 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-01 10:13:20 +0000 |
commit | 7cba04f6dedcf888170496bf8f1857c4069d1131 (patch) | |
tree | affaa99c83934efb6c95255ee6bf36973f5be860 /qemu-char.c | |
parent | 660f11be541813be5f09fbaf44d8e7c6d5a5bbfe (diff) |
More NULL pointer fixes
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-char.c b/qemu-char.c index 2144d1a471..be27994012 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -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); |