Browse code

pv: proper increment to check escaped char for s.select

Daniel-Constantin Mierla authored on 22/05/2021 15:53:50
Showing 1 changed files
... ...
@@ -2752,8 +2752,8 @@ char* tr_parse_string(str* in, trans_t *t)
2752 2752
 		tp->v.s.s = p;
2753 2753
 		tp->v.s.len = 1;
2754 2754
 		if(*p=='\\') {
2755
+			p++;
2755 2756
 			if(*p=='\\' || *p=='n' || *p=='r' || *p=='t') {
2756
-				p++;
2757 2757
 				tp->v.s.len = 2;
2758 2758
 			} else {
2759 2759
 				LM_ERR("unexpected escape char: %c\n", *p);