diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-19 23:15:30 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-19 23:15:30 +0100 |
commit | 083a6c741dfae78ce74246910a5c5ba3566bba0a (patch) | |
tree | b443e139b1f73999b2549de3aa3c74ef0fa2c81a /src/core | |
parent | 860ca4be20fcec36f4f130c7e74339672257c2a7 (diff) | |
download | weechat-083a6c741dfae78ce74246910a5c5ba3566bba0a.zip |
core: check that filename is not NULL in function util_file_get_content
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |