Skip to content

Commit

Permalink
better errors when we build without regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jul 5, 2017
1 parent d37c2f0 commit 491a5ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/cond_tokenize.c
Expand Up @@ -163,8 +163,14 @@ static ssize_t cond_tokenize_string(TALLOC_CTX *ctx, char **out, char const **er
break;

case '/':
#ifdef HAVE_REGEX
*op = T_OP_REG_EQ; /* a bit of a hack. */
break;
#else
p--;
*error = "Regular expressions are not supported";
return -(p - start);
#endif

}

Expand Down

0 comments on commit 491a5ff

Please sign in to comment.