Fix a delimiter matching bug i introduced.
This commit is contained in:
parent
f50ce3135f
commit
f3bd7c4631
@ -193,6 +193,7 @@ static int get_address(char *delimiter, char *my_str, int *linenum, regex_t **re
|
|||||||
else if (my_str[idx] == '/' || my_str[idx] == '\\') {
|
else if (my_str[idx] == '/' || my_str[idx] == '\\') {
|
||||||
int idx_start = 1;
|
int idx_start = 1;
|
||||||
|
|
||||||
|
*delimiter = '/';
|
||||||
if (my_str[idx] == '\\') {
|
if (my_str[idx] == '\\') {
|
||||||
idx_start++;
|
idx_start++;
|
||||||
*delimiter = my_str[++idx];
|
*delimiter = my_str[++idx];
|
||||||
|
Loading…
Reference in New Issue
Block a user