cvs: gd /libgd/tests/gdimagecopy bug00081.c

[email protected] ("Pierre-Alain Joye") Wed, 21 Nov 2007 12:22:40 -0000
Newsgroups php.gd.cvs
Message-ID <cvspajoye1195647760@cvsserver>
pajoye		Wed Nov 21 12:22:40 2007 UTC

  Modified files:              
    /gd/libgd/tests/gdimagecopy	bug00081.c 
  Log:
  - fix 2nd test c/p evilness
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/tests/gdimagecopy/bug00081.c?r1=1.2&r2=1.3&diff_format=u
Index: gd/libgd/tests/gdimagecopy/bug00081.c
diff -u gd/libgd/tests/gdimagecopy/bug00081.c:1.2 gd/libgd/tests/gdimagecopy/bug00081.c:1.3
--- gd/libgd/tests/gdimagecopy/bug00081.c:1.2	Wed Nov 21 12:20:31 2007
+++ gd/libgd/tests/gdimagecopy/bug00081.c	Wed Nov 21 12:22:40 2007
@@ -1,4 +1,4 @@
-/* $Id: bug00081.c,v 1.2 2007/11/21 12:20:31 pajoye Exp $ */
+/* $Id: bug00081.c,v 1.3 2007/11/21 12:22:40 pajoye Exp $ */
 
 #include "gd.h"
 #include <stdio.h>
@@ -23,7 +23,7 @@
 	gdImageFilledRectangle(im, 1, 1, 4, 4, 0xFF00FF);
 
 	im2 = gdImageCreateTrueColor(20, 20);
-	if (!im) {
+	if (!im2) {
 		printf("can't create the dst truecolor image\n");
 		gdImageDestroy(im);
 		return 1;