summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-03-31 12:55:23 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-03-31 12:55:23 +0000
commit08331f781ecec694269bd594e90b6d4840c716fd (patch)
treea12c2fa0f5059f8ecdf731cf0678946c33c52969 /desktop/browser.c
parent1664683fa96942edd5270f217779a2e395e308a1 (diff)
downloadnetsurf-08331f781ecec694269bd594e90b6d4840c716fd.tar.gz
netsurf-08331f781ecec694269bd594e90b6d4840c716fd.tar.bz2
Use tabs for indentation.
svn path=/trunk/netsurf/; revision=7008
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index 9d96db3ed..605b44f25 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1099,29 +1099,29 @@ void browser_window_refresh_url_bar(struct browser_window *bw, const char *url,
const char *frag)
{
char *url_buf;
-
- assert(bw);
- assert(url);
-
- if (frag == NULL) {
- /* With no fragment, we may as well pass url straight through
- * saving a malloc, copy, free cycle.
- */
- gui_window_set_url(bw->window, url);
- } else {
- url_buf = malloc(strlen(url) + 1 /* # */ +
- strlen(frag) + 1 /* \0 */);
- if (url_buf != NULL) {
- /* This sprintf is safe because of the above size
- * calculation, thus we don't need snprintf
- */
- sprintf(url_buf, "%s#%s", url, frag);
- gui_window_set_url(bw->window, url_buf);
- free(url_buf);
- } else {
- warn_user("NoMemory", 0);
- }
- }
+
+ assert(bw);
+ assert(url);
+
+ if (frag == NULL) {
+ /* With no fragment, we may as well pass url straight through
+ * saving a malloc, copy, free cycle.
+ */
+ gui_window_set_url(bw->window, url);
+ } else {
+ url_buf = malloc(strlen(url) + 1 /* # */ +
+ strlen(frag) + 1 /* \0 */);
+ if (url_buf != NULL) {
+ /* This sprintf is safe because of the above size
+ * calculation, thus we don't need snprintf
+ */
+ sprintf(url_buf, "%s#%s", url, frag);
+ gui_window_set_url(bw->window, url_buf);
+ free(url_buf);
+ } else {
+ warn_user("NoMemory", 0);
+ }
+ }
}
/**