Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_text.c
Log Message:
Check for NULL's when changing the text.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_text.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -3 -r1.69 -r1.70
--- ewl_text.c 19 Jul 2004 05:59:41 -0000 1.69
+++ ewl_text.c 19 Jul 2004 18:16:25 -0000 1.70
@@ -143,6 +143,7 @@
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("ta", ta);
+ DCHECK_PARAM_PTR("text", text);
op = ewl_text_op_text_append_new(ta, text);
ecore_dlist_append(ta->ops, op);
@@ -166,6 +167,7 @@
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("ta", ta);
+ DCHECK_PARAM_PTR("text", text);
op = ewl_text_op_text_prepend_new(ta, text);
ecore_dlist_append(ta->ops, op);
@@ -189,6 +191,7 @@
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("ta", ta);
+ DCHECK_PARAM_PTR("text", text);
op = ewl_text_op_text_insert_new(ta, text, index);
ecore_dlist_prepend(ta->ops, op);
@@ -837,7 +840,7 @@
op->type = EWL_TEXT_OP_TYPE_TEXT_SET;
op->apply = ewl_text_op_text_apply;
op->free = ewl_text_op_text_free;
- ops->text = strdup(text);
+ ops->text = text ? strdup(text) : NULL;
}
DRETURN_PTR(op, DLEVEL_STABLE);
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs