summaryrefslogtreecommitdiffhomepage
path: root/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'update.c')
-rw-r--r--update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.c b/update.c
index 1e3e032fd..18b13e8c9 100644
--- a/update.c
+++ b/update.c
@@ -52,7 +52,7 @@ extern int update_main(int argc, char **argv)
argc--;
argv++;
- while (**argv == '-') {
+ while (argc>0 && **argv == '-') {
while (*++(*argv)) {
switch (**argv) {
case 'S':