summaryrefslogtreecommitdiff
path: root/apps/system/install/install.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/install/install.c')
-rw-r--r--apps/system/install/install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/system/install/install.c b/apps/system/install/install.c
index f204ff944..cf54bd4bb 100644
--- a/apps/system/install/install.c
+++ b/apps/system/install/install.c
@@ -357,9 +357,9 @@ int install_main(int argc, char *argv[])
/* Parse arguments */
- for (i=1; i<argc; i++)
+ for (i = 1; i < argc; i++)
{
- if (argv[i][0]=='-' && argv[i][1]=='-' && i<=argc)
+ if (i <= argc && argv[i][0]=='-' && argv[i][1]=='-')
{
if (strcmp(argv[i]+2, "stack")==0)
{