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:
Anthony Merlino 2018-11-28 17:25:13 +00:00 committed by GregoryN
parent 6af45bdee0
commit 1c7d0303e8

View File

@ -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;
}