git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eed2d9a
)
more robust tag list parsing
author
Michal Voců
<michal@ruk.cuni.cz>
Tue, 11 Sep 2012 12:50:26 +0000
(12:50 +0000)
committer
Michal Voců
<michal@ruk.cuni.cz>
Tue, 11 Sep 2012 12:50:26 +0000
(12:50 +0000)
org.glite.lb.common/src/events_parse.c.T
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.common/src/events_parse.c.T
b/org.glite.lb.common/src/events_parse.c.T
index
fab9e78
..
5704892
100644
(file)
--- a/
org.glite.lb.common/src/events_parse.c.T
+++ b/
org.glite.lb.common/src/events_parse.c.T
@@
-59,7
+59,7
@@
int edg_wll_TagListParse(const char *src, edg_wll_TagValue **list) {
if(NULL == *list)
return -1;
- for(p = strtok(src, ","), tag = *list; p; p = strtok(NULL, ",")
, tag++
) {
+ for(p = strtok(src, ","), tag = *list; p; p = strtok(NULL, ",")) {
char *s = strchr(p, '=');
if(NULL == s || '\0' == *(s+1))
@@
-69,6
+69,7
@@
int edg_wll_TagListParse(const char *src, edg_wll_TagValue **list) {
tag->tag = strdup(p);
*s = '=';
tag->value = strdup(s+1);
+ tag++;
}
tag->tag = NULL;
tag->value = NULL;