From: Takashi Iwai Subject: Re: [PATCH - JACK plugin v2 0/2] jack: Support to connect multiple JACK ports with same ALSA channel Date: Tue, 29 Jan 2019 16:28:13 +0100 Message-ID: References: <1548772256-30547-1-git-send-email-twischer@de.adit-jv.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 90DA3267454 for ; Tue, 29 Jan 2019 16:28:15 +0100 (CET) In-Reply-To: <1548772256-30547-1-git-send-email-twischer@de.adit-jv.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: twischer@de.adit-jv.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Tue, 29 Jan 2019 15:30:54 +0100, wrote: > > > On 1/29/19 14:45, Takashi Iwai wrote: > > name is already dereferenced in strlen(), so it's too late here. > > i.e. name_size has to be evaluated after this NULL check, if any. > > Or just drop this NULL check. It's an internal function and the name > > is never NULL, practically seen. > > I have removed it. > > > name_size is the exact size of string + 1, so this is equivalent with > > strcpy(). > > I have added a comment and I am using strcpy(), now. These aren't really good cover letter :) (FWIW, the patch 0/N should be a cover letter that describes the patch set.) In anyway, I applied the latest patches now. thanks, Takashi