The comparison will always evaluate as 'true' for the address of 'mysemp' will never be NULL.
Signed-off-by: Wei,Jiangang <weijg.f...@cn.fujitsu.com> --- testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-2.c index 23240b2..06965ae 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-2.c @@ -34,7 +34,7 @@ int main(void) /* Checking if mysemp has a value returned. From sem_open */ - if (&mysemp != NULL) { + if (mysemp != NULL) { puts("TEST PASSED"); sem_close(mysemp); sem_unlink(semname); -- 1.9.3 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list