summaryrefslogtreecommitdiff
path: root/ares_init.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-10-05 19:42:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-10-05 19:42:39 +0200
commit6cc3521ec9b3f56b59b0976460ae1c4a66a188ee (patch)
treede42f700f8ff6f4c296df925a2a01a05cd197a74 /ares_init.c
parent803e2a28b7644691c0a55fa52b56229d10564735 (diff)
downloadc-ares-6cc3521ec9b3f56b59b0976460ae1c4a66a188ee.tar.gz
c-ares-6cc3521ec9b3f56b59b0976460ae1c4a66a188ee.tar.bz2
c-ares-6cc3521ec9b3f56b59b0976460ae1c4a66a188ee.zip
ares_save_options: assignments instead of memcpy
Diffstat (limited to 'ares_init.c')
-rw-r--r--ares_init.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ares_init.c b/ares_init.c
index c146f96..21229ad 100644
--- a/ares_init.c
+++ b/ares_init.c
@@ -401,10 +401,7 @@ int ares_save_options(ares_channel channel, struct ares_options *options,
if (!options->sortlist)
return ARES_ENOMEM;
for (i = 0; i < channel->nsort; i++)
- {
- memcpy(&(options->sortlist[i]), &(channel->sortlist[i]),
- sizeof(struct apattern));
- }
+ options->sortlist[i] = channel->sortlist[i];
}
options->nsort = channel->nsort;