From 5e06d6b4486907a593f6f12c682ff311e2627685 Mon Sep 17 00:00:00 2001 From: Duoyuan Liu Date: Fri, 17 Mar 2023 11:41:52 +0800 Subject: [PATCH] Fix bug in test case 6 --- entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entry.c b/entry.c index c01d526..c99cbbb 100644 --- a/entry.c +++ b/entry.c @@ -221,13 +221,13 @@ void test_Ini_Get_Value() { // Test: get from section // key - exist key = "ext"; - szValue = PineIni_GetString(iniResult, sectionName, key, "k2v"); + szValue = PineIni_Section_GetString(section, key, "k2v"); printf("Get String from <%s>.<%s> = %s\n", sectionName, key, szValue); // Test: get from section // key - not exist key = "default_play"; - szValue = PineIni_GetString(iniResult, sectionName, key, "video"); + szValue = PineIni_Section_GetString(section, key, "video"); printf("Get String from <%s>.<%s> = %s\n", sectionName, key, szValue); // Test: get int value