diff options
author | Jfreegman <Jfreegman@gmail.com> | 2013-08-05 02:33:15 -0400 |
---|---|---|
committer | Jfreegman <Jfreegman@gmail.com> | 2013-08-05 02:33:15 -0400 |
commit | 17f121c58eb5acb61140440224629199eb835f98 (patch) | |
tree | c375875e00f555641f0671a4652b71cd51fbecff /testing | |
parent | e479f338c18abdafae88c5f02b9996659d1fd6a7 (diff) | |
parent | 5e43dc7bd8c790a43c22fd6ab47e9dbef9205186 (diff) |
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core into testing
Diffstat (limited to 'testing')
-rw-r--r-- | testing/CMakeLists.txt | 5 | ||||
-rw-r--r-- | testing/nTox.c | 4 | ||||
-rw-r--r-- | testing/toxic/chat.c | 1 |
3 files changed, 5 insertions, 5 deletions
diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt index abbc278e..f2a2e95e 100644 --- a/testing/CMakeLists.txt +++ b/testing/CMakeLists.txt | |||
@@ -8,11 +8,10 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_test.cmake) | |||
8 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testclient.cmake) | 8 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testclient.cmake) |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testserver.cmake) | 9 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testserver.cmake) |
10 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Messenger_test.cmake) | 10 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Messenger_test.cmake) |
11 | |||
11 | if(WIN32) | 12 | if(WIN32) |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox_win32.cmake) | 13 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox_win32.cmake) |
13 | endif() | 14 | else() |
14 | |||
15 | if(NOT WIN32) | ||
16 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox.cmake) | 15 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox.cmake) |
17 | add_subdirectory(toxic) | 16 | add_subdirectory(toxic) |
18 | endif() | 17 | endif() |
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); |
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index eb297f7c..2c1f1072 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -265,6 +265,5 @@ ToxWindow new_chat(int friendnum) { | |||
265 | x->friendnum = friendnum; | 265 | x->friendnum = friendnum; |
266 | 266 | ||
267 | ret.x = (void*) x; | 267 | ret.x = (void*) x; |
268 | free(x); | ||
269 | return ret; | 268 | return ret; |
270 | } | 269 | } |