From 083a6c741dfae78ce74246910a5c5ba3566bba0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 19 Jan 2015 23:15:30 +0100 Subject: core: check that filename is not NULL in function util_file_get_content --- src/core/wee-util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core') diff --git a/src/core/wee-util.c b/src/core/wee-util.c index 63848223b..7bcf8674c 100644 --- a/src/core/wee-util.c +++ b/src/core/wee-util.c @@ -659,6 +659,9 @@ util_file_get_content (const char *filename) FILE *f; size_t count, fp; + if (!filename) + return NULL; + buffer = NULL; fp = 0; -- cgit v1.2.3