Commits

Anonymous committed db0e73f

just fail if failed to open file

  • Participants
  • Parent commits 45c5c3b
  • Branches GD-2.0

Comments (0)

Files changed (1)

src/tests/gdtest/gdtest.c

 		sprintf(file_out, "%s_%u_out.png", file + p  + 1, line);
 
 		fp = fopen(file_diff, "wb");
+		if (!fp) goto fail;
 		gdImagePng(surface_diff,fp);
 		fclose(fp);
 
 		fp = fopen(file_out, "wb");
+		if (!fp) goto fail;
 		gdImagePng(actual, fp);
 		fclose(fp);
 	} else {