Merge "encoder: Fix warnings in host build" am: 9046ac2182 am: e321c30b3d am: 12414fdca0

am: d60f16f4c7

Change-Id: I73aeeabb0bed9986ab8c26df648f6c6f3a9f53d8
This commit is contained in:
Harish Mahendrakar 2019-08-16 12:49:07 -07:00 • committed by android-build-merger
commit 9972fa3276

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);