From f919aab408bc5cf22fb2a595437eab6868f3576d Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Wed, 28 May 2014 19:05:31 +0000 Subject: Added assert --- src/htstools.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/htstools.c') 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]); \ } \ -- cgit v1.2.3