pidgin/plugins/crazychat/glm.c

branch
string-comparison-r2
changeset 38258
9a6551eba09c
parent 31294
73607ab89c6f
equal deleted inserted replaced
38257:1a294a6d2a57 38258:9a6551eba09c
158 158
159 assert(model); 159 assert(model);
160 160
161 group = model->groups; 161 group = model->groups;
162 while(group) { 162 while(group) {
163 if (!strcmp(name, group->name)) 163 if (purple_strequal(name, group->name))
164 break; 164 break;
165 group = group->next; 165 group = group->next;
166 } 166 }
167 167
168 return group; 168 return group;
198 GLuint i; 198 GLuint i;
199 199
200 /* XXX doing a linear search on a string key'd list is pretty lame, 200 /* XXX doing a linear search on a string key'd list is pretty lame,
201 but it works and is fast enough for now. */ 201 but it works and is fast enough for now. */
202 for (i = 0; i < model->nummaterials; i++) { 202 for (i = 0; i < model->nummaterials; i++) {
203 if (!strcmp(model->materials[i].name, name)) 203 if (purple_strequal(model->materials[i].name, name))
204 goto found; 204 goto found;
205 } 205 }
206 206
207 /* didn't find the name, so print a warning and return the default 207 /* didn't find the name, so print a warning and return the default
208 material (0). */ 208 material (0). */

mercurial