changeset 1200:d2360c870787

* xrdb.c (x_get_resource): Cast the value being assigned to ret_value->addr, rather than ret_value->addr itself; only GCC allows you to cast lvalues.
author Jim Blandy <jimb@redhat.com>
date Tue, 22 Sep 1992 06:43:04 +0000
parents ab2d88e2505b
children 4ea86d32c012
files src/xrdb.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xrdb.c	Tue Sep 22 06:23:30 1992 +0000
+++ b/src/xrdb.c	Tue Sep 22 06:43:04 1992 +0000
@@ -400,7 +400,7 @@
       && (type == expected_type))
     {
       if (type == x_rm_string)
-	(char *) ret_value->addr = value.addr;
+	ret_value->addr = (char *) value.addr;
       else
 	bcopy (value.addr, ret_value->addr, ret_value->size);