Lines Matching defs:str1
172 char *str1, *str2, *res;
176 if (get_dev_name1(list, &str1, device, 1) < 0)
180 if (str1)
181 free(str1);
184 if (str1 != NULL || str2 != NULL) {
185 if (str1 != NULL && str2 != NULL) {
186 if (strcmp(str1, str2) == 0) {
194 res = malloc(strlen(list->cardname) + strlen(str2) + strlen(str1) + 6);
200 strcat(res, str1);
204 free(str1);
207 if (str1 != NULL) {
210 str1 = str2;
213 res = malloc(strlen(list->cardname) + strlen(str1) + 19);
215 free(str1);
220 strcat(res, str1);
223 free(str1);