Merge "encoder: Fix warnings in host build" am: 9046ac2182 am: e321c30b3d
am: 12414fdca0
Change-Id: I090f381c1ce46d230b6888d9add5d4b7e2a70aaa
This commit is contained in:
commit
d60f16f4c7
1 changed files with 5 additions and 3 deletions
|
|
@ -846,12 +846,14 @@ void read_cfg_file(app_ctxt_t *ps_app_ctxt, FILE *fp_cfg)
|
||||||
|
|
||||||
while(0 == (feof(fp_cfg)))
|
while(0 == (feof(fp_cfg)))
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
line[0] = '\0';
|
line[0] = '\0';
|
||||||
fgets(line, STRLENGTH, fp_cfg);
|
if(NULL == fgets(line, sizeof(line), fp_cfg))
|
||||||
|
break;
|
||||||
argument[0] = '\0';
|
argument[0] = '\0';
|
||||||
/* Reading Input File Name */
|
/* Reading Input File Name */
|
||||||
sscanf(line, "%s %s %s", argument, value, description);
|
ret = sscanf(line, "%s %s %s", argument, value, description);
|
||||||
if(argument[0] == '\0')
|
if(ret < 2)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
parse_argument(ps_app_ctxt, argument, value);
|
parse_argument(ps_app_ctxt, argument, value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue