diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-03-29 00:51:17 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-03-29 00:51:17 +0000 |
commit | 80ce1ecb70abc7e20c1e7b6db8f2ead5c603be30 (patch) | |
tree | 34d6bfef9efa09f4b843220ee837359390a2c15a /gdb/maint.c | |
parent | 692590c19f459c379c6e13f83448ad5d11ebf1ed (diff) | |
download | gdb-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.c | 6 |
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'; |