converted further void**ptr usages to union
authorHelmut Grohne <helmut@subdivi.de>
Wed, 29 Jul 2009 20:36:45 +0000 (22:36 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Wed, 29 Jul 2009 20:36:45 +0000 (22:36 +0200)
uzbl.c

diff --git a/uzbl.c b/uzbl.c
index 6127680..ea2e910 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -1908,8 +1908,8 @@ set_var_value(const gchar *name, gchar *val) {
         c->func = NULL;
         c->writeable = 1;
         buf = expand(val, 0);
-        c->ptr = malloc(sizeof(char *));
-        *c->ptr = buf;
+        c->ptr.s = malloc(sizeof(char *));
+        *c->ptr.s = buf;
         g_hash_table_insert(uzbl.comm.proto_var,
                 g_strdup(name), (gpointer) c);
     }