From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RlS4y-0006fV-D9 for mharc-grub-devel@gnu.org; Thu, 12 Jan 2012 16:21:00 -0500 Received: from eggs.gnu.org ([140.186.70.92]:56482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlS4v-0006f4-Er for grub-devel@gnu.org; Thu, 12 Jan 2012 16:20:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlS4o-000452-65 for grub-devel@gnu.org; Thu, 12 Jan 2012 16:20:57 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:53048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlS4o-00044m-1i for grub-devel@gnu.org; Thu, 12 Jan 2012 16:20:50 -0500 Received: by wicr5 with SMTP id r5so1265438wic.0 for ; Thu, 12 Jan 2012 13:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=YlKMiEY9LVn3RItIyv3J/2gWVaqjLvXpnKQOKxQvWrg=; b=b9rkpvtm1ZFJVgZ4CL0G1u0u/QCFxEZAxA1tF4XkgnfMyUPp9QcZls0bQ/KYkq1o9i Zs1FvxQHWjyxfFDhbQU3M8azF2MXcQeFdEvaOR1D2suOA+SQ+0FSbabmJ5VUgQa26aJz CD0hlsBlu/SPEeAAlPEOlJd8ypiPQLl81vy7o= Received: by 10.180.19.138 with SMTP id f10mr11885654wie.3.1326403248632; Thu, 12 Jan 2012 13:20:48 -0800 (PST) Received: from debian.x201.phnet (204-153.62-81.cust.bluewin.ch. [81.62.153.204]) by mx.google.com with ESMTPS id v28sm7738980wbo.18.2012.01.12.13.20.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jan 2012 13:20:47 -0800 (PST) Message-ID: <4F0F4EAC.2040803@gmail.com> Date: Thu, 12 Jan 2012 22:20:44 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120104 Icedove/8.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Bug in arg.c References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2012 21:20:58 -0000 On 05.01.2012 04:02, Seth Goldberg wrote: > --- a/grub-core/lib/arg.c Wed Jan 04 17:38:56 2012 -0800 > +++ b/grub-core/lib/arg.c Wed Jan 04 18:59:08 2012 -0800 > @@ -351,7 +351,7 @@ > opt = find_long (cmd->options, arg + 2, arglen); > > if (!option && argv[curarg + 1] && argv[curarg + 1][0] != '-' > - && opt->type != ARG_TYPE_NONE) > + && opt && opt->type != ARG_TYPE_NONE) > option = argv[++curarg]; > > if (!opt && (cmd->cmd->flags & GRUB_COMMAND_ACCEPT_DASH)) > Committed, thanks -- Regards Vladimir 'φ-coder/phcoder' Serbinenko