Ticket #43539: patch-common-llist.c.diff
File patch-common-llist.c.diff, 793 bytes (added by macports@…, 11 years ago) |
---|
-
common/llist.c
old new 281 281 { 282 282 LNode *entry; 283 283 284 if (index < 0 || index>= list->size)284 if (index >= list->size) 285 285 return NULL; 286 286 287 287 entry = llist_get_entry(list, index); … … 294 294 LNode *entry; 295 295 void *old_data; 296 296 297 if (index < 0 || index>= list->size)297 if (index >= list->size) 298 298 return NULL; 299 299 300 300 entry = llist_get_entry(list, index); … … 316 316 { 317 317 LNode *entry; 318 318 319 if (index < 0 || index> list->size)319 if (index > list->size) 320 320 return; 321 321 322 322 entry = xmalloc(sizeof(LNode)); … … 343 343 LNode *entry; 344 344 void *data; 345 345 346 if (index < 0 || index>= list->size)346 if (index >= list->size) 347 347 return NULL; 348 348 349 349 entry = llist_get_entry(list, index);