mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #465 from manuel-arguelles/load_from_file
Fix segfault when using -f in toxic
This commit is contained in:
commit
3ce7f043cb
|
@ -218,7 +218,7 @@ int main(int argc, char *argv[])
|
|||
else if (argv[i][0] == '-') {
|
||||
if (argv[i][1] == 'f') {
|
||||
if (argv[i + 1] != NULL)
|
||||
DATA_FILE = argv[i + 1];
|
||||
DATA_FILE = strdup(argv[i + 1]);
|
||||
else
|
||||
f_flag = -1;
|
||||
} else if (argv[i][1] == 'n') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user