This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Mon, Mar 9, 2015 at 11:19 AM, Paul Eggert <eggert@cs.ucla.edu> wrote: > On 03/09/2015 07:28 AM, Paul Pluzhnikov wrote: >> >> - if (strchr ("-=?+", words[1 + *offset]) == NULL) >> + if (words[1 + *offset] == '\0' >> + || strchr ("-=?+", words[1 + *offset]) == NULL) > > > For stuff like this, how about using memchr instead? E.g.,: Sounds good to me. Something like attached? 2015-03-09 Paul Pluzhnikov <ppluzhnikov@google.com> [BZ #18043] * posix/wordexp.c (CHAR_IN_SET): New macro. (parse_param): Use it. -- Paul Pluzhnikov
Attachment:
bz18043.patch4.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |