From ba4d7597524cfd66a30c3252b4563bde0bc5dba8 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Thu, 18 Mar 2010 15:50:19 +0000 Subject: [PATCH] Move a comment closer to where it has relevance. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1547 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/q931.c b/q931.c index 800cca5..0798ff5 100644 --- a/q931.c +++ b/q931.c @@ -602,11 +602,6 @@ void q931_party_subaddress_copy_to_pri(struct pri_party_subaddress *pri_subaddre { int length; - /* - * The size of pri_subaddress->data[] is not the same as the size of - * q931_subaddress->data[]. - */ - if (!q931_subaddress->valid) { pri_subaddress->valid = 0; pri_subaddress->type = 0; @@ -620,6 +615,10 @@ void q931_party_subaddress_copy_to_pri(struct pri_party_subaddress *pri_subaddre pri_subaddress->type = q931_subaddress->type; pri_subaddress->odd_even_indicator = q931_subaddress->odd_even_indicator; + /* + * The size of pri_subaddress->data[] is not the same as the size of + * q931_subaddress->data[]. + */ length = q931_subaddress->length; pri_subaddress->length = length; memcpy(pri_subaddress->data, q931_subaddress->data, length);