Commit 41ab0754 authored by Jim Blandy's avatar Jim Blandy
Browse files

* 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.
parent ba410f40
......@@ -400,7 +400,7 @@ x_get_resource (rdb, name, class, expected_type, ret_value)
&& (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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment