Lines Matching defs:str1
146 char *str1, *str2, *res;
150 if (get_dev_name1(list, &str1, device, 1) < 0)
154 if (str1)
155 free(str1);
158 if (str1 != NULL || str2 != NULL) {
159 if (str1 != NULL && str2 != NULL) {
160 if (strcmp(str1, str2) == 0) {
168 res = malloc(strlen(list->cardname) + strlen(str2) + strlen(str1) + 6);
174 strcat(res, str1);
178 free(str1);
181 if (str1 != NULL) {
184 str1 = str2;
187 res = malloc(strlen(list->cardname) + strlen(str1) + 19);
189 free(str1);
194 strcat(res, str1);
197 free(str1);