mirror of
https://github.com/Tha14/toxic.git
synced 2025-04-12 17:12:59 +02:00
Fixed 2 Null pointer derefrences in both nTox and toxic
This commit is contained in:
parent
4ef0b68602
commit
805eb0195a
4
main.c
4
main.c
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user