summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-10-05 14:26:25 +0100
committerVincent Sanders <vince@netsurf-browser.org>2012-10-05 14:26:25 +0100
commit2bde4a3baa74345a16dc94e2d6a8bd6e3b369b27 (patch)
tree785bb83332e242ee302bbcbf170e906b12fc5237 /desktop
parent49d2ce585cda0c8e6c2e1081a67a79fe1948fdcc (diff)
downloadnetsurf-2bde4a3baa74345a16dc94e2d6a8bd6e3b369b27.tar.gz
netsurf-2bde4a3baa74345a16dc94e2d6a8bd6e3b369b27.tar.bz2
verify path parameter to options loading
Diffstat (limited to 'desktop')
-rw-r--r--desktop/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/options.c b/desktop/options.c
index 82e08ebb2..2a080d564 100644
--- a/desktop/options.c
+++ b/desktop/options.c
@@ -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));