summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-28 19:05:31 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-28 19:05:31 +0000
commitf919aab408bc5cf22fb2a595437eab6868f3576d (patch)
treef99d2ad2b82079eb0dc2afeb88817f1eb5d28392
parent0238301acae1b83e7ec5a8b2c288469467fe51da (diff)
Added assert
-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]); \
} \