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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user