aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-name-parser.y
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-05-28 16:48:58 +0000
committerDaniel Jacobowitz <drow@false.org>2005-05-28 16:48:58 +0000
commit03f4d4c7dc56d644e94e5059d882a7f936be8874 (patch)
treec52eec5f8953ffe43c807007a36d7cd6c5d240e7 /gdb/cp-name-parser.y
parentc6826062e510add65c65379ed490b4eedfa71620 (diff)
downloadgdb-03f4d4c7dc56d644e94e5059d882a7f936be8874.zip
gdb-03f4d4c7dc56d644e94e5059d882a7f936be8874.tar.gz
gdb-03f4d4c7dc56d644e94e5059d882a7f936be8874.tar.bz2
* cp-name-parser.y (parse_escape): Revert previous change. Return
the input character by default.
Diffstat (limited to 'gdb/cp-name-parser.y')
-rw-r--r--gdb/cp-name-parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y
index 90f0a71..0cd725a 100644
--- a/gdb/cp-name-parser.y
+++ b/gdb/cp-name-parser.y
@@ -1440,7 +1440,7 @@ c_parse_backslash (int host_char, int *target_char)
static int
parse_escape (const char **string_ptr)
{
- int target_char = 0;
+ int target_char;
int c = *(*string_ptr)++;
if (c_parse_backslash (c, &target_char))
return target_char;
@@ -1498,7 +1498,7 @@ parse_escape (const char **string_ptr)
return i;
}
default:
- return target_char;
+ return c;
}
}