From 3b113db73fc48821f6cea1c799720303e5780a62 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 28 May 2005 18:27:28 +0000 Subject: [PATCH] * cli/cli-setshow.c (do_setshow_command): Partially revert previous change. Cast to "char **" for var_string. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-setshow.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0b6102f7564..3e0d69d336c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-05-28 Daniel Jacobowitz + + * cli/cli-setshow.c (do_setshow_command): Partially revert previous + change. Cast to "char **" for var_string. + 2005-05-28 Daniel Jacobowitz * cp-name-parser.y (parse_escape): Revert previous change. Return diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 4002953bb71..68c0f6266b3 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -301,8 +301,8 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c) switch (c->var_type) { case var_string: - if (((char *)c->var)[0] != '\0') - fputstr_filtered ((char *)c->var, '"', stb->stream); + if (*(char **) c->var) + fputstr_filtered (*(char **) c->var, '"', stb->stream); break; case var_string_noescape: case var_optional_filename: -- 2.30.2