mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 13:29:21 +03:00
verify path parameter to options loading
This commit is contained in:
parent
49d2ce585c
commit
2bde4a3baa
@ -133,6 +133,11 @@ void nsoption_read(const char *path)
|
||||
char s[100];
|
||||
FILE *fp;
|
||||
|
||||
if (path == NULL) {
|
||||
LOG(("No options loaded"));
|
||||
return;
|
||||
}
|
||||
|
||||
fp = fopen(path, "r");
|
||||
if (!fp) {
|
||||
LOG(("failed to open file '%s'", path));
|
||||
|
Loading…
Reference in New Issue
Block a user