From 2bde4a3baa74345a16dc94e2d6a8bd6e3b369b27 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 5 Oct 2012 14:26:25 +0100 Subject: verify path parameter to options loading --- desktop/options.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop') 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)); -- cgit v1.2.3