[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel/intern font.c softbody.c blender/source/blender/python/api2_2x Mathutils.c NMesh.c blender/source/blender/src editscreen.c

Ken Hughes khughes at pacific.edu
Fri Oct 28 16:30:38 CEST 2005


Ton Roosendaal wrote:
> ton (Ton Roosendaal) 2005/10/28 12:09:46 CEST
> 
>   Modified files:
>     blender/source/blender/blenkernel/intern font.c softbody.c 
>     blender/source/blender/python/api2_2x Mathutils.c NMesh.c 
>     blender/source/blender/src editscreen.c 
>   
>   Log:
>   Fixed gcc warnings for unused var and unitialiazed vars.
>   
>   NOTE: I had to fix NMesh.c, Mesh_fromNMesh(), that is a real bad
>   function... it was returning a Py object as a Mesh (on error).
>   This is still not really solved (NULL return is not handled).

EXPP_ReturnPyObjError() returns a NULL, so

     return EXPP_ReturnPyObjError(...);

is the same as

     EXPP_ReturnPyObjError(...);
     return NULL;

But yes, no one is checking for a NULl return.

Ken


More information about the Bf-committers mailing list