Merge "encoder: Fix warnings in host build"
This commit is contained in:
commit
9046ac2182
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)))
|
||||
{
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue