diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-10-22 20:01:51 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-10-22 20:01:51 +0100 |
commit | bcd43d3f5989b236f696773ab523f56cac54cd8a (patch) | |
tree | dc1d00799cc93d9c7e3f7298b3fdcabb92bd28e7 /windows | |
parent | 094b866388f504bbbecec6290c286f8b6cb008fb (diff) | |
parent | 9629e428a55961106fcd15fd9e0ad9de0649f314 (diff) | |
download | netsurf-bcd43d3f5989b236f696773ab523f56cac54cd8a.tar.gz netsurf-bcd43d3f5989b236f696773ab523f56cac54cd8a.tar.bz2 |
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
Diffstat (limited to 'windows')
-rw-r--r-- | windows/main.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/windows/main.c b/windows/main.c index 6fbf40174..7d158660a 100644 --- a/windows/main.c +++ b/windows/main.c @@ -79,6 +79,15 @@ bool nslog_ensure(FILE *fptr) return true; } +/* Documented in desktop/options.h */ +void gui_options_init_defaults(void) +{ + /* Set defaults for absent option strings */ + + /* ensure homepage option has a default */ + nsoption_setnull_charp(homepage_url, strdup(NETSURF_HOMEPAGE)); +} + /** * Entry point from operating system **/ @@ -138,9 +147,6 @@ WinMain(HINSTANCE hInstance, HINSTANCE hLastInstance, LPSTR lpcli, int ncmd) nsws_window_init_pointers(hInstance); - /* ensure homepage option has a default */ - nsoption_setnull_charp(homepage_url, strdup(NETSURF_HOMEPAGE)); - /* If there is a url specified on the command line use it */ if (argc > 1) { addr = argv[1]; |