Received: from eggs.gnu.org ([2001:4830:134:3::10]:36128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8ZX1-00080J-CR for qemu-devel@nongnu.org; Thu, 02 Jun 2016 16:47:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8ZWw-0005lP-DN for qemu-devel@nongnu.org; Thu, 02 Jun 2016 16:47:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8ZWw-0005k5-79 for qemu-devel@nongnu.org; Thu, 02 Jun 2016 16:47:50 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D662C0B0238 for ; Thu, 2 Jun 2016 20:47:49 +0000 (UTC) References: <1464790116-32405-1-git-send-email-kraxel@redhat.com> From: Cole Robinson Message-ID: <5757be7b-8fee-e3e4-cbdd-530471f7ce99@redhat.com> Date: Thu, 2 Jun 2016 16:47:48 -0400 MIME-Version: 1.0 In-Reply-To: <1464790116-32405-1-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] sdl2: skip init without outputs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , qemu-devel@nongnu.org On 06/01/2016 10:08 AM, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > ui/sdl2.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/ui/sdl2.c b/ui/sdl2.c > index 909038f..30d2a3c 100644 > --- a/ui/sdl2.c > +++ b/ui/sdl2.c > @@ -794,6 +794,9 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) > } > } > sdl2_num_outputs = i; > + if (sdl2_num_outputs == 0) { > + return; > + } > sdl2_console = g_new0(struct sdl2_console, sdl2_num_outputs); > for (i = 0; i < sdl2_num_outputs; i++) { > QemuConsole *con = qemu_console_lookup_by_index(i); > Tested-by: Cole Robinson Thanks, Cole