diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-07-25 19:06:10 +0000 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-09-17 17:03:53 +0000 |
commit | 65ace942fdabfd6116163a21eec7cd7bbd3cbcb1 (patch) | |
tree | 40b1bce4290125bfa3d3695b85fd213f2bb15f77 /src/util.c | |
parent | 1cbac1d7fb292adc0e3e07d206370aeb5ac8e7e0 (diff) |
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.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |