aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc/loader.c')
-rw-r--r--src/blogc/loader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blogc/loader.c b/src/blogc/loader.c
index 57db98f..165bb8e 100644
--- a/src/blogc/loader.c
+++ b/src/blogc/loader.c
@@ -62,6 +62,7 @@ blogc_template_parse_from_file(const char *f, bc_error_t **err)
{
if (err == NULL || *err != NULL)
return NULL;
+
size_t len;
char *s = bc_file_get_contents(f, true, &len, err);
if (s == NULL)
@@ -77,6 +78,7 @@ blogc_source_parse_from_file(const char *f, bc_error_t **err)
{
if (err == NULL || *err != NULL)
return NULL;
+
size_t len;
char *s = bc_file_get_contents(f, true, &len, err);
if (s == NULL)
@@ -98,6 +100,9 @@ blogc_source_parse_from_file(const char *f, bc_error_t **err)
bc_slist_t*
blogc_source_parse_from_files(bc_trie_t *conf, bc_slist_t *l, bc_error_t **err)
{
+ if (err == NULL || *err != NULL)
+ return NULL;
+
bc_error_t *tmp_err = NULL;
bc_slist_t *rv = NULL;
unsigned int with_date = 0;