summaryrefslogtreecommitdiff
path: root/src/minibuf.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-12-27 08:16:00 +0000
committerRichard M. Stallman <rms@gnu.org>1997-12-27 08:16:00 +0000
commit2903c6c9188da90bc375a49af27ae74e63f4058f (patch)
tree41a3c7fa76d4a0be9e3bef7650fa4450f5590ba4 /src/minibuf.c
parente5f54a9b67866ad249d0e2a9b8a06cb302d075fa (diff)
downloademacs-2903c6c9188da90bc375a49af27ae74e63f4058f.tar.gz
(Fread_command, Fread_variable): Fix previous change.
Diffstat (limited to 'src/minibuf.c')
-rw-r--r--src/minibuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 7de73d069e2..c08e2d3754b 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -761,7 +761,7 @@ Prompts with PROMPT. By default, return DEFAULT-VALUE.")
if (NILP (default_value))
default_string = Qnil;
else if (SYMBOLP (default_value))
- default_string = XSYMBOL (default_value)->name;
+ XSETSTRING (default_string, XSYMBOL (default_value)->name);
else
default_string = default_value;
@@ -796,7 +796,7 @@ A user variable is one whose documentation starts with a `*' character.")
if (NILP (default_value))
default_string = Qnil;
else if (SYMBOLP (default_value))
- default_string = XSYMBOL (default_value)->name;
+ XSETSTRING (default_string, XSYMBOL (default_value)->name);
else
default_string = default_value;