Received: from eggs.gnu.org ([2001:4830:134:3::10]:34573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEDlN-00031l-9k for qemu-devel@nongnu.org; Thu, 22 Jan 2015 04:09:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEDlM-0006Jg-HP for qemu-devel@nongnu.org; Thu, 22 Jan 2015 04:09:17 -0500 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:54049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEDlL-0006Is-Uy for qemu-devel@nongnu.org; Thu, 22 Jan 2015 04:09:16 -0500 Received: by mail-pa0-f52.google.com with SMTP id kx10so548337pab.11 for ; Thu, 22 Jan 2015 01:09:15 -0800 (PST) Sender: Hitoshi Mitake From: Hitoshi Mitake Date: Thu, 22 Jan 2015 18:08:13 +0900 Message-Id: <1421917694-6824-4-git-send-email-mitake.hitoshi@lab.ntt.co.jp> In-Reply-To: <1421917694-6824-1-git-send-email-mitake.hitoshi@lab.ntt.co.jp> References: <1421917694-6824-1-git-send-email-mitake.hitoshi@lab.ntt.co.jp> Subject: [Qemu-devel] [PATCH v2 3/4] qga: initialize progname with error_set_progname() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hitoshi Mitake , Michael Roth , mitake.hitoshi@gmail.com, Markus Armbruster Calling error_get_progname() in the context of qga can cause segmentation fault because qga doesn't initialize its progname with error_set_progname(). This patch adds the initialization. Currently, the missing call of error_set_progname() doesn't cause any problems because qga doesn't use error_get_progname(). This patch is a proactive action. Cc: Michael Roth Cc: Markus Armbruster Signed-off-by: Hitoshi Mitake --- qga/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qga/main.c b/qga/main.c index 9939a2b..0885fc6 100644 --- a/qga/main.c +++ b/qga/main.c @@ -958,6 +958,7 @@ int main(int argc, char **argv) GList *blacklist = NULL; GAState *s; + error_set_progname(argv[0]); module_call_init(MODULE_INIT_QAPI); init_dfl_pathnames(); -- 1.9.1