[Gtkradiant] [Bug 684] Cleanup pnp NULL Typecasts in plugins/imagepng/plugin.cpp

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Sun, 13 Apr 2003 09:28:22 -0500


ttimo@idsoftware.com changed:

           What    |Removed                     |Added
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

------- Additional Comments From ttimo@idsoftware.com  2003-04-13 09:28 -------
the part of the patch that does:
-  if (!strcmp(pAPI->major_name, "image"))
+ if (!strcmp(pAPI->major_name, "imagepng"))
is wrong.

the initial version is correct
and can be cleaned up to equivalent:
  if (!strcmp(pAPI->major_name, IMAGE_MAJOR))

appliied the modified patch