diff options
author | charmlesscoin <charmlesscoin@gmail.com> | 2013-08-04 17:35:56 -0400 |
---|---|---|
committer | charmlesscoin <charmlesscoin@gmail.com> | 2013-08-04 17:35:56 -0400 |
commit | 1b6c16f7ff57624bee1594f31b057609d52dbea6 (patch) | |
tree | 57644207805a177dcef2b91ea061ee4663d406db /testing/toxic | |
parent | 10024f50739f6a15991fd5e8763f45105267804c (diff) | |
parent | a8f752130bc98a2b6f2db93520b6038f2180c774 (diff) |
Merge https://github.com/stqism/ProjectTox-Core
Diffstat (limited to 'testing/toxic')
-rw-r--r-- | testing/toxic/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c index e0e23708..45760b1c 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c | |||
@@ -288,7 +288,9 @@ int main(int argc, char* argv[]) { | |||
288 | ToxWindow* a; | 288 | ToxWindow* a; |
289 | 289 | ||
290 | for(i = 0; i < argc; i++) { | 290 | for(i = 0; i < argc; i++) { |
291 | if(argv[i][0] == '-') { | 291 | if (argv[i] == NULL){ |
292 | break; | ||
293 | } else if(argv[i][0] == '-') { | ||
292 | if(argv[i][1] == 'f') { | 294 | if(argv[i][1] == 'f') { |
293 | if(argv[i + 1] != NULL) | 295 | if(argv[i + 1] != NULL) |
294 | filename = argv[i + 1]; | 296 | filename = argv[i + 1]; |