Merge "encoder: Fix warnings in host build"

This commit is contained in:
Treehugger Robot 2019-08-16 18:35:45 +00:00 committed by Gerrit Code Review
commit 9046ac2182

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