Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_fm.c 


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

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.c,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -3 -r1.196 -r1.197
--- e_fm.c      18 Aug 2007 10:37:16 -0000      1.196
+++ e_fm.c      18 Aug 2007 11:50:08 -0000      1.197
@@ -3513,7 +3513,7 @@
    hostname[i] = '\0';
 
    /* See http://www.faqs.org/rfcs/rfc1738.html for the escaped chars */
-   for (p, i = 0; *p != '\0' && i < PATH_MAX; i++, p++)
+   for (i = 0; *p != '\0' && i < PATH_MAX; i++, p++)
      {
        if (*p == '%')
          {
@@ -3527,7 +3527,7 @@
      }
 
    uri = E_NEW(E_Fm2_Uri, 1);
-   if (strlen(hostname) > 0) uri->hostname = evas_stringshare_add(hostname);
+   if (hostname[0]) uri->hostname = evas_stringshare_add(hostname);
    else uri->hostname = NULL;
    uri->path = evas_stringshare_add(path);
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to