qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix crash at startup
@ 2009-01-19  6:58 Lionel Landwerlin
  2009-01-19  7:16 ` Laurent Desnogues
  0 siblings, 1 reply; 2+ messages in thread
From: Lionel Landwerlin @ 2009-01-19  6:58 UTC (permalink / raw)
  To: qemu-devel

Fix crash at startup

Signed-off-by: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
---
 exec.c |   3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/exec.c b/exec.c
index faa6333..7c9d7dc 100644
--- a/exec.c
+++ b/exec.c
@@ -2066,2 +2066,2 @@ void page_dump(FILE *f)
     int i, j, prot, prot1;
     PageDesc *p;

+    if (!f)
+        return;
+
     fprintf(f, "%-8s %-8s %-8s %s\n",
             "start", "end", "size", "prot");
     start = -1;
--
1.5.6.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-19  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19  6:58 [Qemu-devel] [PATCH] Fix crash at startup Lionel Landwerlin
2009-01-19  7:16 ` Laurent Desnogues

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).