1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

core: check that filename is not NULL in function util_file_get_content

This commit is contained in:
Sébastien Helleu
2015-01-19 23:15:30 +01:00
parent 860ca4be20
commit 083a6c741d
+3
View File
@@ -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;