From 80ce1ecb70abc7e20c1e7b6db8f2ead5c603be30 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 29 Mar 2000 00:51:17 +0000 Subject: Fix various GCC warnings. --- gdb/maint.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/maint.c') 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'; -- cgit v1.1