Lines Matching defs:node
145 ParamContextsList *node = (ParamContextsList *)malloc(sizeof(ParamContextsList));
146 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head);
148 node->info.paraName = strdup(selinuxLabels[i][0]);
149 node->info.paraContext = strdup(selinuxLabels[i][1]);
150 node->info.index = i;
151 node->next = head->next;
152 head->next = node;
154 // test error, no node paraName
155 ParamContextsList *node = (ParamContextsList *)malloc(sizeof(ParamContextsList));
156 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head);
158 node->info.paraName = nullptr;
159 node->info.paraContext = strdup(selinuxLabels[0][1]);
160 node->next = head->next;
161 head->next = node;
163 // test error, no node paraContext
164 node = (ParamContextsList *)malloc(sizeof(ParamContextsList));
165 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head);
167 node->info.paraName = strdup(selinuxLabels[0][0]);
168 node->info.paraContext = nullptr;
169 node->next = head->next;
170 head->next = node;
173 node = (ParamContextsList *)malloc(sizeof(ParamContextsList));
174 BEGET_ERROR_CHECK(node != nullptr, TestDestroyParamList(&head);
176 node->info.paraName = strdup(selinuxLabels[0][0]);
177 node->info.paraContext = strdup(selinuxLabels[0][1]);
178 node->info.index = 0;
179 node->next = head->next;
180 head->next = node;