r750: check puts() return (#132 & #103)

This commit is contained in:
Heng Li
2018-03-22 11:31:58 -04:00
parent 18659118cd
commit 623b5d9d48
5 changed files with 24 additions and 7 deletions
+6 -1
View File
@@ -10,7 +10,7 @@
#include "getopt.h"
#endif
#define MM_VERSION "2.9-r749-dirty"
#define MM_VERSION "2.9-r750-dirty"
#ifdef __linux__
#include <sys/resource.h>
@@ -336,6 +336,11 @@ int main(int argc, char *argv[])
}
mm_idx_reader_close(idx_rdr);
if (fflush(stdout) == EOF) {
fprintf(stderr, "[ERROR] failed to write the results\n");
exit(EXIT_FAILURE);
}
if (mm_verbose >= 3) {
fprintf(stderr, "[M::%s] Version: %s\n", __func__, MM_VERSION);
fprintf(stderr, "[M::%s] CMD:", __func__);