1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: check that filename is not NULL in function util_file_get_content

(cherry picked from commit 083a6c741d)
This commit is contained in:
Sébastien Helleu
2015-01-19 23:15:30 +01:00
parent d039fd0f8c
commit 0cf4640b9b
+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;