Subversion Repositories SvarDOS

Rev

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

Rev 2242 Rev 2243
Line 646... Line 646...
646
    nls_outputnl(37,11); /* "/B Uses bare format (no heading information or summary)" */
646
    nls_outputnl(37,11); /* "/B Uses bare format (no heading information or summary)" */
647
    nls_outputnl(37,12); /* "/L Uses lowercases" */
647
    nls_outputnl(37,12); /* "/L Uses lowercases" */
648
    goto GAMEOVER;
648
    goto GAMEOVER;
649
  }
649
  }
650
 
650
 
651
  /* allocate buf */
-
 
652
  buf = calloc(sizeof(*buf), 1);
651
  /* reserve buf space within the upstream-supplied buffer */
653
  if (buf == NULL) {
652
  if (sizeof(*buf) > p->BUFFERSZ) {
654
    nls_output_err(255, 8); /* insufficient memory */
653
    nls_output_err(255, 8); /* insufficient memory */
655
    goto GAMEOVER;
654
    goto GAMEOVER;
656
  }
655
  }
-
 
656
  buf = (void *)(p->BUFFER);
-
 
657
  sv_bzero(buf, sizeof(*buf));
657
 
658
 
658
  /* zero out glob_sortcmp_dat and init the collation table */
659
  /* zero out glob_sortcmp_dat and init the collation table */
659
  sv_bzero(&glob_sortcmp_dat, sizeof(glob_sortcmp_dat));
660
  sv_bzero(&glob_sortcmp_dat, sizeof(glob_sortcmp_dat));
660
  for (i = 0; i < 256; i++) {
661
  for (i = 0; i < 256; i++) {
661
    glob_sortcmp_dat.sortownia[i] = i;
662
    glob_sortcmp_dat.sortownia[i] = i;
Line 1070... Line 1071...
1070
  GAMEOVER:
1071
  GAMEOVER:
1071
 
1072
 
1072
  /* free the buffer memory (if used) */
1073
  /* free the buffer memory (if used) */
1073
  if (glob_sortcmp_dat.dtabuf_root != NULL) cmd_dir_farfree(glob_sortcmp_dat.dtabuf_root);
1074
  if (glob_sortcmp_dat.dtabuf_root != NULL) cmd_dir_farfree(glob_sortcmp_dat.dtabuf_root);
1074
 
1075
 
1075
  free(buf);
-
 
1076
  return(CMD_OK);
1076
  return(CMD_OK);
1077
}
1077
}