Skip to content

Commit

Permalink
Survive str.isEqual(nil)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2789 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
Matthias Neeracher committed Oct 13, 2009
1 parent 89ccbf9 commit 6c31fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion string.c
Expand Up @@ -5290,7 +5290,7 @@ imp_rb_str_isEqual(void *rcv, SEL sel, void *other)
{
bool flag;
PREPARE_RCV(rcv);
flag = CFEqual((CFTypeRef)rcv, (CFTypeRef)other);
flag = other && CFEqual((CFTypeRef)rcv, (CFTypeRef)other);
RESTORE_RCV(rcv);
return flag;
}
Expand Down

0 comments on commit 6c31fdd

Please sign in to comment.