aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/file.c')
-rw-r--r--src/common/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file.c b/src/common/file.c
index d64a0d8..1e55f64 100644
--- a/src/common/file.c
+++ b/src/common/file.c
@@ -20,7 +20,7 @@
char*
bc_file_get_contents(const char *path, bool utf8, size_t *len, bc_error_t **err)
{
- if (path == NULL || err == NULL || *err != NULL)
+ if (path == NULL || len == NULL || err == NULL || *err != NULL)
return NULL;
*len = 0;