aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-01 22:16:40 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-01 22:16:40 +0000
commite325fb69b4ae1a9f5d276672a883e864861d90d8 (patch)
tree32d9537643c4c433732d3517bfdb7286e5086cd1 /gdb/linespec.c
parent21cbba772bc49b385076834496fd8475a85064cd (diff)
downloadgdb-e325fb69b4ae1a9f5d276672a883e864861d90d8.zip
gdb-e325fb69b4ae1a9f5d276672a883e864861d90d8.tar.gz
gdb-e325fb69b4ae1a9f5d276672a883e864861d90d8.tar.bz2
2011-03-01 Michael Snyder <msnyder@vmware.com>
* linespec.c (decode_line_1): Remove unnecessary null check.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index e9548e8..5979c16 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -726,7 +726,7 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
char *copy;
/* This says whether or not something in *ARGPTR is quoted with
completer_quotes (i.e. with single quotes). */
- int is_quoted = 0;
+ int is_quoted;
/* Is *ARGPTR is enclosed in double quotes? */
int is_quote_enclosed;
int is_objc_method = 0;
@@ -745,14 +745,11 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
/* See if arg is *PC. */
- if (*argptr)
- {
- if (**argptr == '*')
- return decode_indirect (argptr);
+ if (**argptr == '*')
+ return decode_indirect (argptr);
- is_quoted = (strchr (get_gdb_completer_quote_characters (),
- **argptr) != NULL);
- }
+ is_quoted = (strchr (get_gdb_completer_quote_characters (),
+ **argptr) != NULL);
if (is_quoted)
end_quote = skip_quoted (*argptr);