Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_entry_dialog.c 


Log Message:
Check that initial text is actually set befor trying to strdup it.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_entry_dialog.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_entry_dialog.c    17 Aug 2006 16:58:32 -0000      1.7
+++ e_entry_dialog.c    7 Sep 2006 16:56:54 -0000       1.8
@@ -24,7 +24,8 @@
    ed->ok.data = data;
    ed->cancel.func = cancel_func;
    ed->cancel.data = data;
-   ed->text = strdup(initial_text);
+   if (initial_text)
+     ed->text = strdup(initial_text);
    
    dia = e_dialog_new(e_container_current_get(e_manager_current_get()), "E", 
"_entry_dialog");
    if (!dia) 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to