Subversion Repositories SvarDOS

Rev

Rev 1550 | Rev 1552 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1550 Rev 1551
Line 652... Line 652...
652
    victim = db->cursor;
652
    victim = db->cursor;
653
    db->cursor = db->cursor->next;
653
    db->cursor = db->cursor->next;
654
    line_free(victim);
654
    line_free(victim);
655
  }
655
  }
656
 
656
 
-
 
657
  /* zero out the struct (take care to preserve the id of the slot, though) */
-
 
658
  {
657
  /* zero out the struct */
659
    unsigned char slotid = db->slotid;
658
  bzero(db, sizeof(struct file));
660
    bzero(db, sizeof(struct file));
-
 
661
    db->slotid = slotid;
-
 
662
  }
659
 
663
 
660
  /* start by adding an empty line */
664
  /* start by adding an empty line */
661
  if (line_add(db, NULL, 0) != 0) return(2);
665
  if (line_add(db, NULL, 0) != 0) return(2);
662
 
666
 
663
  if (fname == NULL) goto SKIPLOADING;
667
  if (fname == NULL) goto SKIPLOADING;