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:
4d9651a
)
really copy whole queryrec
author
Aleš Křenek
<ljocha@ics.muni.cz>
Mon, 26 Sep 2005 18:24:47 +0000
(18:24 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Mon, 26 Sep 2005 18:24:47 +0000
(18:24 +0000)
org.glite.jp.common/src/context.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.common/src/context.c
b/org.glite.jp.common/src/context.c
index
adb4132
..
3da2f7a
100644
(file)
--- a/
org.glite.jp.common/src/context.c
+++ b/
org.glite.jp.common/src/context.c
@@
-81,11
+81,10
@@
void glite_jp_free_query_rec(glite_jp_query_rec_t *q)
int glite_jp_queryrec_copy(glite_jp_query_rec_t *dst, const glite_jp_query_rec_t *src)
{
+ memcpy(dst,src,sizeof *src);
if (src->attr) dst->attr = strdup(src->attr);
if (src->value) dst->value = strdup(src->value);
if (src->value2) dst->value2 = strdup(src->value2);
- dst->op = src->op;
- dst->origin = src->origin;
return 0;
}