* dbxread.c (process_one_symbol): Check for null string directly
authorFred Fish <fnf@specifix.com>
Fri, 11 Oct 1996 22:31:56 +0000 (22:31 +0000)
committerFred Fish <fnf@specifix.com>
Fri, 11 Oct 1996 22:31:56 +0000 (22:31 +0000)
rather than using strcmp against "".
* partial-stab.h: Ditto.

gdb/ChangeLog
gdb/partial-stab.h

index 7cec8880430eb7f0f48c567eff9cd8bf88de0c9a..c0b1a5b31743b12588a0dec84ec80ba4867e580f 100644 (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}:
index c51f091f1d45b711396d055dfc056611f979fee8..551ee7149ea8c9da09a397e2e72493cf63072c4f 100644 (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;