summaryrefslogtreecommitdiff
path: root/testing/nTox.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nTox.c')
-rw-r--r--testing/nTox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/nTox.c b/testing/nTox.c
index 74702697..9f6d8233 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -496,7 +496,7 @@ int load_data(Tox *m)
496 496
497 uint8_t data[size]; 497 uint8_t data[size];
498 if (fread(data, sizeof(uint8_t), size, data_file) != size) { 498 if (fread(data, sizeof(uint8_t), size, data_file) != size) {
499 fputs("[!] could not read data file! exiting...\n", stderr); 499 fputs("[!] could not read data file!\n", stderr);
500 return 0; 500 return 0;
501 } 501 }
502 502
@@ -504,7 +504,8 @@ int load_data(Tox *m)
504 504
505 if (fclose(data_file) < 0) { 505 if (fclose(data_file) < 0) {
506 perror("[!] fclose failed"); 506 perror("[!] fclose failed");
507 return 0; 507 /* we got it open and the expected data read... let it be ok */
508 /* return 0; */
508 } 509 }
509 510
510 return 1; 511 return 1;