From 65ace942fdabfd6116163a21eec7cd7bbd3cbcb1 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Mon, 25 Jul 2011 19:06:10 +0000 Subject: introduce getter and setter functions. some variables didn't always have a value reflecting the browser's internal state. for example, if `default_encoding` was never set then `print @default_encoding` would always print a blank string. this introduces getter functions that ensure the value of a variable is always in sync with the internal state of the browser. also: setters, because sometimes you need to process user input before storing it. --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 42ae39e..eab176a 100644 --- a/src/util.c +++ b/src/util.c @@ -151,8 +151,8 @@ argv_idx(const GArray *a, const guint idx) { GString * append_escaped (GString *dest, const gchar *src) { - g_assert(dest); - g_assert(src); + g_assert(dest); + g_assert(src); // Hint that we are going to append another string. int oldlen = dest->len; -- cgit v1.2.3