From ad6aaeb698a79ea8ad25ac585a1bc688d91d6ced Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 8 Apr 2005 22:53:31 +0000 Subject: * config/darwin.c (indirect_data): Fix typo in strncmp logic. From-SVN: r97866 --- gcc/ChangeLog | 4 ++++ gcc/config/darwin.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2e639c..470e221 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-04-08 Mike Stump + + * config/darwin.c (indirect_data): Fix typo in strncmp logic. + 2005-04-08 Kazu Hirata * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index e6f41a2..0b2ddc3 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -169,7 +169,7 @@ indirect_data (rtx sym_ref) lprefix = (((name[0] == '*' || name[0] == '&') && (name[1] == 'L' || (name[1] == '"' && name[2] == 'L'))) - || (strncmp (name, "_OBJC_", 6))); + || (strncmp (name, "_OBJC_", 6) == 0)); return ! lprefix; } -- cgit v1.1