summaryrefslogtreecommitdiff
path: root/src/htslib.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-17 13:29:45 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-17 13:29:45 +0000
commit2209c7bdd8e02fee38ed1d4e5c10dd32e0ce196f (patch)
tree1433309845d9cdeb8a7d88746ef09a9298529bdc /src/htslib.c
parentcb0460ddcb5898609be3f7f7ba855a03aa5e836d (diff)
Anonymous logging.
Diffstat (limited to 'src/htslib.c')
-rw-r--r--src/htslib.c11
1 files changed, 4 insertions, 7 deletions
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