projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e67e4da
)
[eventpipe] Fix environment variable parser for multiple configurations (#68552)
author
Stefan Schulze Frielinghaus
<stefansf@linux.ibm.com>
Sat, 7 May 2022 09:06:04 +0000
(11:06 +0200)
committer
GitHub
<noreply@github.com>
Sat, 7 May 2022 09:06:04 +0000
(11:06 +0200)
src/native/eventpipe/ep.c
patch
|
blob
|
history
diff --git
a/src/native/eventpipe/ep.c
b/src/native/eventpipe/ep.c
index
15e2811
..
587a59d
100644
(file)
--- a/
src/native/eventpipe/ep.c
+++ b/
src/native/eventpipe/ep.c
@@
-792,12
+792,17
@@
get_next_config_value (const ep_char8_t *data, const ep_char8_t **start, const e
EP_ASSERT (end != NULL);
*start = data;
- while (*data != '\0' && *data != ':')
+ while (*data != '\0' && *data != '
,' && *data != '
:')
data++;
*end = data;
- return *data != '\0' ? ++data : NULL;
+ if (*data == '\0')
+ return NULL;
+ else if (*data == ',')
+ return data;
+ else
+ return ++data;
}
static