Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_desktop


Modified Files:
        ecore_desktop.c 


Log Message:
Be a bit more paranoid about this loop.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -3 -r1.66 -r1.67
--- ecore_desktop.c     12 Nov 2006 02:48:34 -0000      1.66
+++ ecore_desktop.c     12 Nov 2006 14:53:57 -0000      1.67
@@ -841,7 +841,7 @@
 {
    Ecore_List *result;
    char       *sub_result = NULL, *params = NULL;
-   int         is_single;
+   int         is_single = 0, do_file = 0;
 
    result = ecore_list_new();
    if (!result) return NULL;
@@ -913,9 +913,10 @@
                ecore_dlist_goto_first(command);
                while ((p = ecore_dlist_next(command)) != NULL)
                  {
-                    int do_file = 0, is_URL = 0, is_directory = 0, is_file = 0;
+                    int is_URL = 0, is_directory = 0, is_file = 0;
 
                     t = NULL;
+                    do_file = 0;
                     is_single = 0;
                     if (p[0] == '%')
                       switch (p[1])
@@ -991,7 +992,7 @@
                            default:
                               break;
                         }
-                    /* TAke care of any file expansions. */
+                    /* Take care of any file expansions. */
                     if (do_file && (files))
                       {
                          char *file;
@@ -1113,7 +1114,7 @@
     * go back and do it all again for the next file. 
     */
    }
-   while((is_single) && (fill) && (files) && (ecore_list_current(files)));
+   while((do_file) && (is_single) && (fill) && (files) && 
(ecore_list_current(files)));
 
 error:
    if (params) free(params);



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