Changeset 3 for trunk/src/sh_hash.c


Ignore:
Timestamp:
Dec 21, 2005, 10:07:54 PM (19 years ago)
Author:
rainer
Message:

More fixes for update function, released 2.1.1 version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_hash.c

    r1 r3  
    653653{
    654654  sh_file_t * p;
     655  sh_file_t * q;
    655656  int key;
    656657
     
    674675              strlen(s->fullpath) == strlen(p->fullpath))
    675676            {
    676               SH_FREE(s->fullpath);
    677               if(s->linkpath)
    678                 SH_FREE(s->linkpath);
     677              q = p->next;
     678              SH_FREE(p->fullpath);
     679              if(p->linkpath)
     680                SH_FREE(p->linkpath);
     681              memcpy(p, s, sizeof(sh_file_t));
     682              p->next = q;
    679683              SH_FREE(s);
    680684              s = NULL;
Note: See TracChangeset for help on using the changeset viewer.