Enlightenment CVS committal

Author  : urandom
Project : e17
Module  : libs/etk

Dir     : e17/libs/etk/src/lib


Modified Files:
        etk_frame.c 


Log Message:
fix segfault when passing null label

===================================================================
RCS file: /cvs/e/e17/libs/etk/src/lib/etk_frame.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- etk_frame.c 6 Oct 2006 17:04:14 -0000       1.12
+++ etk_frame.c 29 Jan 2007 05:08:30 -0000      1.13
@@ -75,7 +75,10 @@
    if (label != frame->label)
    {
       free(frame->label);
-      frame->label = strdup(label);
+      if (label)
+         frame->label = strdup(label);
+      else
+         frame->label = NULL;
       etk_object_notify(ETK_OBJECT(frame), "label");
    }
 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to