This commit is contained in:
charmlesscoin 2013-08-04 17:35:56 -04:00
commit 1b6c16f7ff
2 changed files with 6 additions and 2 deletions

View File

@ -428,7 +428,9 @@ int main(int argc, char *argv[])
}
for(i = 0; i < argc; i++) {
if(argv[i][0] == '-') {
if (argv[i] == NULL){
break;
} else if(argv[i][0] == '-') {
if(argv[i][1] == 'h') {
print_help();
exit(0);

View File

@ -288,7 +288,9 @@ int main(int argc, char* argv[]) {
ToxWindow* a;
for(i = 0; i < argc; i++) {
if(argv[i][0] == '-') {
if (argv[i] == NULL){
break;
} else if(argv[i][0] == '-') {
if(argv[i][1] == 'f') {
if(argv[i + 1] != NULL)
filename = argv[i + 1];