From 693e9bf6555521945a6953eb978a90347c3d7cc6 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Fri, 11 Oct 1996 22:31:56 +0000 Subject: [PATCH] * dbxread.c (process_one_symbol): Check for null string directly rather than using strcmp against "". * partial-stab.h: Ditto. --- gdb/ChangeLog | 6 ++++++ gdb/partial-stab.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7cec8880430..c0b1a5b3174 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Fri Oct 11 14:23:50 1996 Fred Fish + + * dbxread.c (process_one_symbol): Check for null string directly + rather than using strcmp against "". + * partial-stab.h: Ditto. + Fri Oct 11 12:18:32 1996 Mark Alexander * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}: diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index c51f091f1d4..551ee7149ea 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -382,7 +382,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef DBXREAD_ONLY /* See if this is an end of function stab. */ - if (CUR_SYMBOL_TYPE == N_FUN && ! strcmp (namestring, "")) + if (CUR_SYMBOL_TYPE == N_FUN && *namestring == '\000') { unsigned long valu; -- 2.30.2