X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=bam_plcmd.c;fp=bam_plcmd.c;h=31e3017dcca25be269bd7cb393ae9da83f93c279;hb=e7e57afd8b5f432431e26a9fa2146e8daa9267bd;hp=54a4597a702d441dc15bfa4070fae16d3905a990;hpb=44428cd6d2c6f24b7fe59e1333d883a5a1a11e12;p=samtools.git diff --git a/bam_plcmd.c b/bam_plcmd.c index 54a4597..31e3017 100644 --- a/bam_plcmd.c +++ b/bam_plcmd.c @@ -209,6 +209,11 @@ static int mpileup(mplp_conf_t *conf, int n, char **fn) n_plp = calloc(n, sizeof(int*)); sm = bam_smpl_init(); + if (n == 0) { + fprintf(stderr,"[%s] no input file/data given\n", __func__); + exit(1); + } + // read the header and initialize data for (i = 0; i < n; ++i) { bam_header_t *h_tmp;