diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/options.c | 5 |
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)); |