diff mbox

[v5,2/9] vga: stop after the first ppm_save

Message ID 1329944981-28311-3-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

Alon Levy Feb. 22, 2012, 9:09 p.m. UTC
From: Gerd Hoffman <kraxel@redhat.com>

Tested-by: Alon Levy <alevy@redhat.com>
---
 hw/vga.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/hw/vga.c b/hw/vga.c
index c1029db..a728f29 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2369,6 +2369,7 @@  static void vga_save_dpy_update(DisplayState *ds,
 {
     if (screen_dump_filename) {
         ppm_save(screen_dump_filename, ds->surface);
+        screen_dump_filename = NULL;
     }
 }