From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103485 invoked by alias); 22 Feb 2016 14:50:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 103408 invoked by uid 89); 22 Feb 2016 14:50:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=logical, vla1, gdb.mi, gdbmi X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Feb 2016 14:50:06 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 22 Feb 2016 06:50:04 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 22 Feb 2016 06:50:01 -0800 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u1MEo01s026448; Mon, 22 Feb 2016 14:50:00 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id u1MEo0YU004553; Mon, 22 Feb 2016 15:50:00 +0100 Received: (from heckel@localhost) by ulvlx001.iul.intel.com with œ id u1MEnxxh004547; Mon, 22 Feb 2016 15:50:00 +0100 From: Bernhard Heckel To: brobecker@adacore.com Cc: gdb-patches@sourceware.org, "bernhard.heckel" Subject: [PATCH] testsuite: Nullify pointers before first usage. Date: Mon, 22 Feb 2016 14:50:00 -0000 Message-Id: <1456152558-3962-2-git-send-email-bernhard.heckel@intel.com> In-Reply-To: <1456152558-3962-1-git-send-email-bernhard.heckel@intel.com> References: <1456152558-3962-1-git-send-email-bernhard.heckel@intel.com> X-SW-Source: 2016-02/txt/msg00652.txt.bz2 From: "bernhard.heckel" Nullify pointers to avoid an undefined association status. 2016-02-18 Bernhard Heckel gdb/Changelog: * vla.f90: Nullify pointer after declaration. --- gdb/testsuite/gdb.mi/vla.f90 | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/testsuite/gdb.mi/vla.f90 b/gdb/testsuite/gdb.mi/vla.f90 index 10c3dcc..c3e48dc 100644 --- a/gdb/testsuite/gdb.mi/vla.f90 +++ b/gdb/testsuite/gdb.mi/vla.f90 @@ -18,6 +18,7 @@ program vla real, target, allocatable :: vla2(:, :) real, pointer :: pvla2 (:, :) logical :: l + nullify (pvla2) allocate (vla1 (5)) ! vla1-not-allocated l = allocated(vla1) ! vla1-allocated -- 2.7.1.339.g0233b80