From: Aleš Křenek Date: Mon, 26 Sep 2005 18:24:47 +0000 (+0000) Subject: really copy whole queryrec X-Git-Tag: gridsite-core_R_1_1_12~84 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=51eacca2f405ed026a25dca51b7693d29e7c7501;p=jra1mw.git really copy whole queryrec --- diff --git a/org.glite.jp.common/src/context.c b/org.glite.jp.common/src/context.c index adb4132..3da2f7a 100644 --- 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; }