aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-03-29 00:51:17 +0000
committerAndrew Cagney <cagney@redhat.com>2000-03-29 00:51:17 +0000
commit80ce1ecb70abc7e20c1e7b6db8f2ead5c603be30 (patch)
tree34d6bfef9efa09f4b843220ee837359390a2c15a /gdb/maint.c
parent692590c19f459c379c6e13f83448ad5d11ebf1ed (diff)
downloadgdb-80ce1ecb70abc7e20c1e7b6db8f2ead5c603be30.zip
gdb-80ce1ecb70abc7e20c1e7b6db8f2ead5c603be30.tar.gz
gdb-80ce1ecb70abc7e20c1e7b6db8f2ead5c603be30.tar.bz2
Fix various GCC warnings.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index dd974b7..8a8df59 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -425,10 +425,12 @@ maintenance_do_deprecate (char *text, int deprecate)
if (deprecate)
{
/* look for a replacement command */
- if (start_ptr = strchr (text, '\"'))
+ start_ptr = strchr (text, '\"');
+ if (start_ptr != NULL)
{
start_ptr++;
- if (end_ptr = strrchr (start_ptr, '\"'))
+ end_ptr = strrchr (start_ptr, '\"');
+ if (end_ptr != NULL)
{
len = end_ptr - start_ptr;
start_ptr[len] = '\0';