fix some possible errors

Origin commit data
------------------
Branch: ni/coolstream
Commit: d5d6c4de62
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-11-06 (Thu, 06 Nov 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2014-11-06 14:40:44 +01:00
parent a945830c8b
commit 5293f9470a
4 changed files with 7 additions and 5 deletions

View File

@@ -124,6 +124,7 @@ int my_system(int argc, const char *arg, ...)
if (i == argv_max)
{
fprintf(stderr, "my_system: too many arguments!\n");
va_end(args);
return -1;
}
argv[i] = va_arg(args, const char *);