summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_clibrary/evel/evel-library/code/evel_library/evel_voicequality.c
diff options
context:
space:
mode:
authorYatianXU <yatian.xu@nokia-sbell.com>2019-09-07 04:33:35 -0400
committerYatian XU <yatian.xu@nokia-sbell.com>2019-09-07 11:03:12 +0000
commitd0d0c2fb41c2e61b69b5dc9e38f3e60843f4388d (patch)
tree2e08fe87af01e2d4fba0ae1c0af4873f7beac7ad /veslibrary/ves_clibrary/evel/evel-library/code/evel_library/evel_voicequality.c
parent998c19266ef5f74fffd79e9c0c0a65f77ff19a43 (diff)
Change the for loop initial declarations to avoid adding -std=c99 in CFLAGS.
As strdup() provided by POSIX returns "address out of bould" in C99 mode, which may cause program crash. Issue-ID: VNFSDK-465 Signed-off-by: YatianXU <yatian.xu@nokia-sbell.com> Change-Id: I57f55edd939d64c2e201a345fe83659048308d50
Diffstat (limited to 'veslibrary/ves_clibrary/evel/evel-library/code/evel_library/evel_voicequality.c')
-rw-r--r--veslibrary/ves_clibrary/evel/evel-library/code/evel_library/evel_voicequality.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/veslibrary/ves_clibrary/evel/evel-library/code/evel_library/evel_voicequality.c b/veslibrary/ves_clibrary/evel/evel-library/code/evel_library/evel_voicequality.c
index 1a77e76..4f454fb 100644
--- a/veslibrary/ves_clibrary/evel/evel-library/code/evel_library/evel_voicequality.c
+++ b/veslibrary/ves_clibrary/evel/evel-library/code/evel_library/evel_voicequality.c
@@ -536,8 +536,8 @@ void evel_json_encode_voice_quality(EVEL_JSON_BUFFER * jbuf,
evel_json_checkpoint(jbuf);
if (evel_json_open_opt_named_object(jbuf, "additionalInformation"))
{
-
- for(unsigned int idx = 0; idx < ht->size; idx++ )
+ unsigned int idx = 0;
+ for(; idx < ht->size; idx++ )
{
/*****************************************************************/
/* Get the first entry of a particular Key and loop through the */