Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_border_menu.c 


Log Message:
Don't use strlen to check for emtpy string

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_border_menu.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- e_int_border_menu.c 18 Jul 2006 13:35:08 -0000      1.29
+++ e_int_border_menu.c 19 Jul 2006 11:05:31 -0000      1.30
@@ -531,9 +531,9 @@
    a = bd->app;
    
    bname = bd->client.icccm.name;
-   if ((bname) && (strlen(bname) < 1)) bname = NULL;
+   if ((bname) && (bname[0] == 0)) bname = NULL;
    bclass = bd->client.icccm.class;
-   if ((bclass) && (strlen(bclass) < 1)) bclass = NULL;
+   if ((bclass) && (bclass[0] == 0)) bclass = NULL;
             
    if (!a)
      {



-------------------------------------------------------------------------
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