lkml.org 
[lkml]   [2018]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH 07/10] tracing: Have zero size length in filter logic be full string
    On Sat, 12 May 2018 21:40:29 +0900
    Masami Hiramatsu <mhiramat@kernel.org> 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

    \
     
     \ /
      Last update: 2018-05-12 19:28    [W:5.852 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site