* lib-src/ootags.c (analyse_regex): Return if regex_arg is NULL
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
void analyse_regex(regex_arg)
char *regex_arg;
{
void analyse_regex(regex_arg)
char *regex_arg;
{
+ if (regex_arg == NULL) {
free_patterns(); /* --no-regex: remove existing regexps */
free_patterns(); /* --no-regex: remove existing regexps */
/* A real --regexp option or a line in a regexp file. */
switch (regex_arg[0]) {
/* Comments in regexp file or null arg to --regex. */
/* A real --regexp option or a line in a regexp file. */
switch (regex_arg[0]) {
/* Comments in regexp file or null arg to --regex. */