diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 15:41:34 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 15:41:34 -0600 |
commit | 6363fad05b2d312482bde3b54e43e8b0e9831532 (patch) | |
tree | a89cd2604a1c5b434c64831871c7d1a3da35f5ba /apps/system/install | |
parent | 76d6af0fd310967d8bf08d01cfc1db00e4a0c757 (diff) | |
download | px4-nuttx-6363fad05b2d312482bde3b54e43e8b0e9831532.tar.gz px4-nuttx-6363fad05b2d312482bde3b54e43e8b0e9831532.tar.bz2 px4-nuttx-6363fad05b2d312482bde3b54e43e8b0e9831532.zip |
Fixes for more cppcheck complaints.
Diffstat (limited to 'apps/system/install')
-rw-r--r-- | apps/system/install/install.c | 4 |
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) { |