summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-09-30 13:07:08 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-09-30 13:07:08 +0200
commitbb1b9f095a4911fa6c173279b20116affd6ca897 (patch)
tree4b0707e109c8b02914ea61670799fbf6dc4ea088
parentf1db65a08565316bf46f9210f834ce4f40432697 (diff)
downloadcmocka-bb1b9f095a4911fa6c173279b20116affd6ca897.tar.gz
cmocka-bb1b9f095a4911fa6c173279b20116affd6ca897.tar.bz2
cmocka-bb1b9f095a4911fa6c173279b20116affd6ca897.zip
src: Use variable name for accessing the array elements
-rw-r--r--src/cmocka.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 2fc46f3..1a41e52 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -2576,9 +2576,9 @@ int _cmocka_run_group_tests(const char *group_name,
cmprintf(PRINTF_TEST_START, test_number, cmtest->test->name, NULL);
if (group_state != NULL) {
- cm_tests[i].state = group_state;
- } else if (cm_tests[i].test->initial_state != NULL) {
- cm_tests[i].state = cm_tests[i].test->initial_state;
+ cmtest->state = group_state;
+ } else if (cmtest->test->initial_state != NULL) {
+ cmtest->state = cmtest->test->initial_state;
}
rc = cmocka_run_one_tests(cmtest);