Changeset 383 for trunk/src/sh_hash.c
- Timestamp:
- Dec 5, 2011, 10:30:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_hash.c
r371 r383 600 600 prev->next = p->next; 601 601 602 p =delete_db_entry(p);602 delete_db_entry(p); 603 603 604 604 SL_RET0(_("hash_unvisited")); … … 693 693 entries.prev->next = p->next; 694 694 695 p =delete_db_entry(p);695 delete_db_entry(p); 696 696 697 697 goto end; … … 915 915 SL_RET0(_("hashinsert")); 916 916 } 917 else 918 if (p->next == NULL) 919 { 920 p->next = s; 921 p->next->next = NULL; 922 SL_RET0(_("hashinsert")); 923 } 924 p = p->next; 917 else if (p && p->next == NULL) 918 { 919 p->next = s; 920 p->next->next = NULL; 921 SL_RET0(_("hashinsert")); 922 } 923 if (p) 924 p = p->next; 925 else /* cannot really happen, but llvm/clang does not know */ 926 break; 925 927 } 926 928 } … … 1470 1472 sl_close (fd); 1471 1473 sh_hash_getline_end(); 1472 fd = -1;1474 /* fd = -1; */ 1473 1475 1474 1476 unlock_and_return:
Note:
See TracChangeset
for help on using the changeset viewer.