1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-12 23:33:03 +01:00

Fixed 2 Null pointer derefrences in both nTox and toxic

This commit is contained in:
Sean Qureshi 2013-08-04 14:36:09 -07:00
parent 4ef0b68602
commit 805eb0195a

4
main.c
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];