X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:subject:reply-to:references:to:cc
	:message-id:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=ygqrMVBmGPnF3YJh
	py9BDyrreGsyDVdO+QawTvZHu1zm79BlHdQdXUGS54NIMLUw1uxkW9S1fAnpWn32
	Z7N05MlDMDcsq770Aq6PQZOIiEA4JkXdDsS4VkPQfMI99j860BTuLMKTzdZsfa3P
	lKP1Qyld5fgUdRmdwjfuG8nOtqc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:subject:reply-to:references:to:cc
	:message-id:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=RyCLZGYCOIPDHET35jnGQv
	HGCto=; b=Uc9leO9xFTrtplPdEl81kX5beowVpHe9LwET54FRZKVANR2Us8rdoF
	QE6HkKe30VoIfNIg9Km4owQXyosTMagI+t+TEuGKkSA4uZDv2wUQ1L/QZvgmaEOm
	VAGCk6kfCK5Oj4mZwqibhwbaxbW1V7cyvUJtp0dsnsYc/M5rQtdps=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: out3-smtp.messagingengine.com
From: Jon TURNEY <jon.turney@dronecode.org.uk>
Subject: Re: run.exe fails to start XWin on Windows 8.1 through the shortcut
Reply-To: cygwin@cygwin.com
References: <1439383412.552964.1315.31567@mail.rambler.ru> <55CB5887.2050607@dronecode.org.uk> <87zj1w8hcy.fsf@Rainer.invalid>
To: cygwin@cygwin.com
Cc: Stromeko@nexgo.de
Message-ID: <55CC6D1D.2020800@dronecode.org.uk>
Date: Thu, 13 Aug 2015 11:10:37 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
MIME-Version: 1.0
In-Reply-To: <87zj1w8hcy.fsf@Rainer.invalid>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

On 12/08/2015 19:57, Achim Gratz wrote:
> Jon TURNEY writes:
>> Not sure if this is the cause of this problem, but after a bit of
>> staring at file_exists_multi(), I notice that run2_fileExits() doesn't
>> initialize t when it returns FALSE, so perhaps the following is a good
>> idea?
>
> The only way I can see this happening is when the initialisation of t
> gets hoisted out of the loop, and if the compiler thinks that is OK to
> do it should not matter if the initializer is an explicit NULL or
> implicit 0.

There is no implicit initialization of automatic local variables in the 
C language.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

