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:
2593254
)
fixed deferred attribute matching
author
Jiří Filipovič
<fila@ics.muni.cz>
Fri, 29 Feb 2008 15:43:45 +0000
(15:43 +0000)
committer
Jiří Filipovič
<fila@ics.muni.cz>
Fri, 29 Feb 2008 15:43:45 +0000
(15:43 +0000)
org.glite.jp.primary/src/feed.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.primary/src/feed.c
b/org.glite.jp.primary/src/feed.c
index
aebebdd
..
fa8360a
100644
(file)
--- a/
org.glite.jp.primary/src/feed.c
+++ b/
org.glite.jp.primary/src/feed.c
@@
-254,6
+254,11
@@
int glite_jpps_match_attr(
int i;
for (i = 0; attrs[i].name; i++){
ma->attrs = realloc(ma->attrs, (i+2)*sizeof(*ma->attrs));
+
+ memcpy(&(ma->attrs[i]), &(attrs[i]), sizeof(*ma->attrs));
+ ma->attrs[i].name = strdup(attrs[i].name);
+ ma->attrs[i].value = strdup(attrs[i].value);
+
ma->attrs[i+1].name = NULL;
}
glite_jp_add_deferred(ctx, match_attr_deferred, ma);