diff options
author | pgen <p.gen.progs@gmail.com> | 2018-05-14 22:24:03 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2018-05-14 22:24:50 +0200 |
commit | e63bf6c08d6546fd5438dd15dec285fac754d676 (patch) | |
tree | 565ca89962ec74cbcf221c4216ff8d376e0a4878 | |
parent | 1dede6e7c31cb5495596490588b5f789035395e4 (diff) |
Do not search for UTF-8 chars in empty patterns
-rw-r--r-- | smenu.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -6723,8 +6723,11 @@ main(int argc, char * argv[]) /* Replace the UTF-8 ascii representations by their binary values in */ /* the inclusion and exclusion patterns. */ /* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */ - mb_interpret(include_pattern, &langinfo); - mb_interpret(exclude_pattern, &langinfo); + if (include_pattern != NULL) + mb_interpret(include_pattern, &langinfo); + + if (exclude_pattern != NULL) + mb_interpret(exclude_pattern, &langinfo); /* Force the right modes when the -C option is given */ /* """"""""""""""""""""""""""""""""""""""""""""""""" */ |