Commit 112b93a7 authored by François Grisez's avatar François Grisez
Browse files

Fix compilation for CentOS

parent 8c3e6f77
......@@ -703,7 +703,9 @@ char *lp_config_read_relative_file(const LpConfig *lpconfig, const char *filenam
FILE *file = fopen(filepath, "r");
if(file != NULL) {
result = ms_new0(char, MAX_LEN);
fgets(result, MAX_LEN, file);
if(fgets(result, MAX_LEN, file) == NULL) {
ms_error("%s could not be loaded", filepath);
} else {
ms_error("Could not open %s for read", filepath);
mediastreamer2 @ a87216d8
Subproject commit b83b82d67692b5a93de5194c3503dc61828d4051
Subproject commit a87216d8e30ec6723774b1236c1eba6525568925
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment