diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-09 17:10:06 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-09 17:10:06 +0000 |
commit | 5d564d08125526d153928adcf872ed30827de6ed (patch) | |
tree | 6f17272de93fe03a3b19ab0210814fea5ea51b71 /src/htscoremain.c | |
parent | 90404c36f6ce33386242c00b41ec154dce65b30a (diff) |
Fixed a bunch of warnings.
Diffstat (limited to 'src/htscoremain.c')
-rw-r--r-- | src/htscoremain.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c index 0f2da28..75c34fe 100644 --- a/src/htscoremain.c +++ b/src/htscoremain.c @@ -1733,7 +1733,10 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp *opt) { htsmain_free(); return -1; } else { - system(argv[na+1]); + int code; + if ((code = system(argv[na+1])) != 0) { + fprintf(stderr, "process returned error code %d\n", code); + } } break; case 'd': |