* dbxread.c (process_one_symbol): Check for null string directly

rather than using strcmp against "".
	* partial-stab.h: Ditto.
This commit is contained in:
Fred Fish 1996-10-11 22:31:56 +00:00
parent 63dc694d29
commit 693e9bf655
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Fri Oct 11 14:23:50 1996 Fred Fish <fnf@cygnus.com>
* 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 <marka@cygnus.com>
* gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:

View File

@ -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;