Re: [RFC][PATCH 07/10] tracing: Have zero size length in filter logic be full string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 12 May 2018 21:40:29 +0900
Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:


> >  static int regex_match_full(char *str, struct regex *r, int len)
> >  {
> > -	if (strncmp(str, r->pattern, len) == 0)
> > -		return 1;
> > -	return 0;
> > +	/* len means str is dynamic and ends with '\0' */  
>            ^^^
>           !len (or len == 0)?
> 
> Thank you,
> 

Yes, agreed. Thanks for the review!

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux