Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_entry.c 


Log Message:
Protect against a segv when the font is NULL.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_entry.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_entry.c 24 May 2005 05:02:15 -0000      1.16
+++ ewl_entry.c 16 Jun 2005 04:00:02 -0000      1.17
@@ -1893,7 +1893,7 @@
                op->type = EWL_ENTRY_OP_TYPE_FONT_SET;
                op->apply = ewl_entry_op_font_apply;
                op->free = ewl_entry_op_font_free;
-               opf->font = strdup(font);
+               opf->font = strdup((font ? font : ""));
                opf->size = size;
        }
 




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to