Merged in antmerlino/apps/system-fix (pull request #161)
system: Fixes build error; There is no result variable, use errcode instead. Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
parent
6af45bdee0
commit
1c7d0303e8
@ -156,7 +156,7 @@ int system(FAR const char *cmd)
|
||||
|
||||
if (errcode != 0)
|
||||
{
|
||||
serr("ERROR: Spawn failed: %d\n", result);
|
||||
serr("ERROR: Spawn failed: %d\n", errcode);
|
||||
goto errout_with_attrs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user