qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix possible NULL pointer use in vl.c
@ 2008-01-03  2:23 Robert Reif
  0 siblings, 0 replies; only message in thread
From: Robert Reif @ 2008-01-03  2:23 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: vl.c.diff.txt --]
[-- Type: text/plain, Size: 331 bytes --]

diff -p -u -r1.392 vl.c
--- vl.c	28 Dec 2007 20:59:23 -0000	1.392
+++ vl.c	3 Jan 2008 02:20:42 -0000
@@ -985,6 +985,8 @@ QEMUTimer *qemu_new_timer(QEMUClock *clo
     QEMUTimer *ts;
 
     ts = qemu_mallocz(sizeof(QEMUTimer));
+    if (!ts)
+        return NULL;
     ts->clock = clock;
     ts->cb = cb;
     ts->opaque = opaque;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-03  2:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-03  2:23 [Qemu-devel] [PATCH] fix possible NULL pointer use in vl.c Robert Reif

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).