Skip to content

Commit

Permalink
remove trailing newline
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jun 1, 2014
1 parent c5501ab commit 7618266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ int r3_tree_compile_patterns(node * n, char **errstr) {
NULL); /* use default character tables */
if (n->pcre_pattern == NULL) {
if (errstr) {
asprintf(errstr, "PCRE compilation failed at offset %d: %s, pattern: %s\n", pcre_erroffset, pcre_error, n->combined_pattern);
asprintf(errstr, "PCRE compilation failed at offset %d: %s, pattern: %s", pcre_erroffset, pcre_error, n->combined_pattern);
}
return -1;
}
Expand All @@ -231,7 +231,7 @@ int r3_tree_compile_patterns(node * n, char **errstr) {
n->pcre_extra = pcre_study(n->pcre_pattern, 0, &pcre_error);
if (n->pcre_extra == NULL) {
if (errstr) {
asprintf(errstr, "PCRE study failed at offset %s\n", pcre_error);
asprintf(errstr, "PCRE study failed at offset %s, pattern: %s", pcre_error, n->combined_pattern);
}
return -1;
}
Expand Down

0 comments on commit 7618266

Please sign in to comment.