Skip to content

Commit

Permalink
Fixed issue where log formats with pipe delimiter were not propely pa…
Browse files Browse the repository at this point in the history
…rsed.
  • Loading branch information
allinurl committed Sep 25, 2018
1 parent 48d9968 commit 648c5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ get_delim (char *dest, const char *p)
/* add the first delim */
dest[0] = *(p + 1);
/* check if there's another possible delim */
if (p[2] == '|' && p[3] != '\0') {
if (p[2] == '|' && p[3] != '%' && p[3] != '\0') {
dest[1] = *(p + 3);
return 1;
}
Expand Down

0 comments on commit 648c5a2

Please sign in to comment.