Explorar o código

Do not check retbuf if realpath returns NULL

Carmelo Amoroso %!s(int64=17) %!d(string=hai) anos
pai
achega
dc064d58ba
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      test/stdlib/test-canon.c

+ 1 - 2
test/stdlib/test-canon.c

@@ -188,8 +188,7 @@ do_test (int argc, char ** argv)
 	  continue;
 	}
 
-      if ((tests[i].retval || tests[i].retbuf)
-       && !check_path (buf, tests[i].retval ? tests[i].retval : tests[i].retbuf))
+      if (result && !check_path (buf, tests[i].retval ? tests[i].retval : tests[i].retbuf))
 	{
 	  printf ("%s: flunked test %d (expected resolved `%s', got `%s')\n",
 		  argv[0], i, tests[i].retval ? tests[i].retval : tests[i].retbuf,