Merge "encoder: Fix warnings in host build"

am: 9046ac2182

Change-Id: I30b498b2cd57d1d63e66e8367f8703c0a8add6e2
This commit is contained in:
Harish Mahendrakar 2019-08-16 12:20:44 -07:00 committed by android-build-merger
commit e321c30b3d

View file

@ -846,12 +846,14 @@ void read_cfg_file(app_ctxt_t *ps_app_ctxt, FILE *fp_cfg)
while(0 == (feof(fp_cfg)))
{
int ret;
line[0] = '\0';
fgets(line, STRLENGTH, fp_cfg);
if(NULL == fgets(line, sizeof(line), fp_cfg))
break;
argument[0] = '\0';
/* Reading Input File Name */
sscanf(line, "%s %s %s", argument, value, description);
if(argument[0] == '\0')
ret = sscanf(line, "%s %s %s", argument, value, description);
if(ret < 2)
continue;
parse_argument(ps_app_ctxt, argument, value);