From 112b93a790c5096f294774d204eba5948abd9aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Wed, 10 Sep 2014 09:35:51 +0200 Subject: [PATCH] Fix compilation for CentOS --- coreapi/lpconfig.c | 4 +++- mediastreamer2 | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/coreapi/lpconfig.c b/coreapi/lpconfig.c index 5daff8319..ff3f808b2 100644 --- a/coreapi/lpconfig.c +++ b/coreapi/lpconfig.c @@ -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); + } fclose(file); } else { ms_error("Could not open %s for read", filepath); diff --git a/mediastreamer2 b/mediastreamer2 index b83b82d67..a87216d8e 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit b83b82d67692b5a93de5194c3503dc61828d4051 +Subproject commit a87216d8e30ec6723774b1236c1eba6525568925