summaryrefslogtreecommitdiff
path: root/src/htstools.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/htstools.c')
-rw-r--r--src/htstools.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/htstools.c b/src/htstools.c
index 0894e47..1780a53 100644
--- a/src/htstools.c
+++ b/src/htstools.c
@@ -788,6 +788,7 @@ static int hts_template_formatv(hts_template_format_buf *buf,
#define FPUTS(S) do { \
size_t i; \
const char *const str_ = (S); \
+ assertf(str_ != NULL); \
for(i = 0 ; str_[i] != '\0' ; i++) { \
FPUTC(str_[i]); \
} \