diff options
Diffstat (limited to 'ini/ini_valueobj_ut.c')
-rw-r--r-- | ini/ini_valueobj_ut.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ini/ini_valueobj_ut.c b/ini/ini_valueobj_ut.c index 767a64c..af62c14 100644 --- a/ini/ini_valueobj_ut.c +++ b/ini/ini_valueobj_ut.c @@ -378,6 +378,7 @@ int vo_basic_test(void) */ struct value_obj *vo = NULL; + struct value_obj *other_vo = NULL; uint32_t wrap = 0; struct ini_comment *ic = NULL; FILE *ff = NULL; @@ -429,7 +430,7 @@ int vo_basic_test(void) } /* Run other create test here */ - error = other_create_test(ff, &vo); + error = other_create_test(ff, &other_vo); if (error) { printf("Create test failed %d.\n", error); fclose(ff); @@ -437,15 +438,15 @@ int vo_basic_test(void) } /* Run modify test here */ - error = modify_test(ff, vo); + error = modify_test(ff, other_vo); if (error) { printf("Modify test failed %d.\n", error); fclose(ff); - value_destroy(vo); + value_destroy(other_vo); return error; } - value_destroy(vo); + value_destroy(other_vo); ic = NULL; |