summaryrefslogtreecommitdiff
path: root/testing/nTox.c
diff options
context:
space:
mode:
authorcharmlesscoin <charmlesscoin@gmail.com>2013-08-04 17:35:56 -0400
committercharmlesscoin <charmlesscoin@gmail.com>2013-08-04 17:35:56 -0400
commit1b6c16f7ff57624bee1594f31b057609d52dbea6 (patch)
tree57644207805a177dcef2b91ea061ee4663d406db /testing/nTox.c
parent10024f50739f6a15991fd5e8763f45105267804c (diff)
parenta8f752130bc98a2b6f2db93520b6038f2180c774 (diff)
Merge https://github.com/stqism/ProjectTox-Core
Diffstat (limited to 'testing/nTox.c')
-rw-r--r--testing/nTox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/nTox.c b/testing/nTox.c
index 072c17e3..ec597bc3 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -428,7 +428,9 @@ int main(int argc, char *argv[])
428 } 428 }
429 429
430 for(i = 0; i < argc; i++) { 430 for(i = 0; i < argc; i++) {
431 if(argv[i][0] == '-') { 431 if (argv[i] == NULL){
432 break;
433 } else if(argv[i][0] == '-') {
432 if(argv[i][1] == 'h') { 434 if(argv[i][1] == 'h') {
433 print_help(); 435 print_help();
434 exit(0); 436 exit(0);