r13576 tlsa - /trunk/netsurf/cocoa/NetsurfApp.m

netsurf at semichrome.net netsurf at semichrome.net
Sat Mar 24 08:56:15 GMT 2012


Author: tlsa
Date: Sat Mar 24 03:56:14 2012
New Revision: 13576

URL: http://source.netsurf-browser.org?rev=13576&view=rev
Log:
Fix for options refactor.

Modified:
    trunk/netsurf/cocoa/NetsurfApp.m

Modified: trunk/netsurf/cocoa/NetsurfApp.m
URL: http://source.netsurf-browser.org/trunk/netsurf/cocoa/NetsurfApp.m?rev=13576&r1=13575&r2=13576&view=diff
==============================================================================
--- trunk/netsurf/cocoa/NetsurfApp.m (original)
+++ trunk/netsurf/cocoa/NetsurfApp.m Sat Mar 24 03:56:14 2012
@@ -62,11 +62,11 @@
 								 nil]];
 	
 	
-	nsoption_setnull(cookie_file, strdup( [[defaults objectForKey: kCookiesFileOption] UTF8String] ));
+	nsoption_setnull_charp(cookie_file, strdup( [[defaults objectForKey: kCookiesFileOption] UTF8String] ));
 
-	nsoption_setnull(cookie_jar, strdup( nsoption_charp(cookie_file) ));
+	nsoption_setnull_charp(cookie_jar, strdup( nsoption_charp(cookie_file) ));
 
-	nsoption_setnull(homepage_url, strdup( [[defaults objectForKey: kHomepageURLOption] UTF8String] ));
+	nsoption_setnull_charp(homepage_url, strdup( [[defaults objectForKey: kHomepageURLOption] UTF8String] ));
 
 	urldb_load( [[defaults objectForKey: kURLsFileOption] UTF8String] );
 	urldb_load_cookies( nsoption_charp(cookie_file) );
@@ -172,7 +172,7 @@
 	const char * const options = cocoa_get_options_file();
 	const char * const ca_bundle = [[[NSBundle mainBundle] pathForResource: @"ca-bundle" ofType: @""] UTF8String];
 
-	nsoption_setnull(ca_bundle, strdup(ca_bundle));
+	nsoption_setnull_charp(ca_bundle, strdup(ca_bundle));
 
 	netsurf_init(&argc, &argv, options, messages);
 




More information about the netsurf-commits mailing list