Lines Matching refs:kv2
93 kva_t *kv2 = _str2kva(attr2, KV_ASSIGN, KV_DELIMITER);
106 if (kv1 == NULL || kv2 == NULL) {
108 _kva_free(kv2);
113 * Two steps: move the attributes not found in kv1 from kv2;
118 len = kv1->length + kv2->length;
123 _kva_free(kv2);
129 for (i = 0; i < kv2->length; i++) {
130 if (kva_match(kv1, kv2->data[i].key) == NULL) {
131 kv1->data[kv1->length++] = kv2->data[i];
132 kv2->data[i].key = NULL;
133 kv2->data[i].value = NULL;
138 for (i = 0; i < kv2->length; i++) {
139 char *key = kv2->data[i].key;
140 if (key != NULL && kv2->data[i].value != NULL &&
149 if (strcmp(val1, kv2->data[i].value) == 0)
152 blen = strlen(kv2->data[i].value) +
157 kv2->data[i].value);
163 _kva_free(kv2);