mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 22:33:02 +01: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;
|
ToxWindow* a;
|
||||||
|
|
||||||
for(i = 0; i < argc; i++) {
|
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] == 'f') {
|
||||||
if(argv[i + 1] != NULL)
|
if(argv[i + 1] != NULL)
|
||||||
filename = argv[i + 1];
|
filename = argv[i + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user