forked from enlightenment/enventor
bin/main: fix infinite loop case.
when user launch enventor with command line option "-to xxx.edc", it falls in infinite loop. now its fixed.
This commit is contained in:
parent
a22815cbfd
commit
cb339befe2
|
@ -321,7 +321,6 @@ args_dispatch(int argc, char **argv, char *edc_path, char *img_path,
|
|||
}
|
||||
else goto defaults;
|
||||
|
||||
//edc image path
|
||||
int cur_arg = 2;
|
||||
|
||||
while (cur_arg < argc)
|
||||
|
@ -351,6 +350,7 @@ args_dispatch(int argc, char **argv, char *edc_path, char *img_path,
|
|||
sprintf(dat_path, "%s", argv[cur_arg + 1]);
|
||||
cur_arg += 2;
|
||||
}
|
||||
++cur_arg;
|
||||
}
|
||||
|
||||
defaults:
|
||||
|
|
Loading…
Reference in New Issue