]> code.ossystems Code Review - openembedded-core.git/commit
gcc-common: Don't use "is" for comparing strings, use "=="
authorKartik Mohta <kartikmohta@gmail.com>
Wed, 4 Jul 2012 03:21:07 +0000 (23:21 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jul 2012 15:51:21 +0000 (16:51 +0100)
commit7fd82cc90a48302ed42b6bfa962bb0de2c652b45
treef5bb6754c7fe194b6d2dbddee555ed8368d137f5
parent9705ccc10892b15fa3269ed071bb41d45987694c
gcc-common: Don't use "is" for comparing strings, use "=="

Needed because the equality check was failing here even though upon
printing the LHS and RHS were the same.
As per http://stackoverflow.com/a/2987975/64537, using "is" compares the
memory addresses of the two objects which is not what we want here. We
just want to compare the values.

Signed-off-by: Kartik Mohta <kartikmohta@gmail.com>
meta/recipes-devtools/gcc/gcc-common.inc