From 2209c7bdd8e02fee38ed1d4e5c10dd32e0ce196f Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Sat, 17 May 2014 13:29:45 +0000 Subject: Anonymous logging. --- src/htslib.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/htslib.c b/src/htslib.c index c5d797b..f544141 100644 --- a/src/htslib.c +++ b/src/htslib.c @@ -5359,14 +5359,11 @@ HTSEXT_API void hts_log_vprint(httrackp * opt, int type, const char *format, va_ } HTSEXT_API void hts_log_print(httrackp * opt, int type, const char *format, ...) { + va_list args; assertf(format != NULL); - if (opt != NULL && (opt->log != NULL - || hts_log_print_callback != NULL)) { - va_list args; - va_start(args, format); - hts_log_vprint(opt, type, format, args); - va_end(args); - } + va_start(args, format); + hts_log_vprint(opt, type, format, args); + va_end(args); } HTSEXT_API void set_wrappers(httrackp * opt) { // LEGACY -- cgit v1.2.3