Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/epsilon

Dir     : e17/libs/epsilon/src/lib


Modified Files:
        Epsilon.c Epsilon.h 


Log Message:
- make sure hash_seeded exists
- we want to check the length of hash_seeded not if it is NULL as it won't
  ever be null. This seems to make epsilon return the right thumbnails
  again.
- fix spelling mistake in the header file

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/epsilon/src/lib/Epsilon.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- Epsilon.c   6 Aug 2005 02:31:49 -0000       1.15
+++ Epsilon.c   19 Aug 2005 18:24:00 -0000      1.16
@@ -344,6 +344,9 @@
   if (!e->hash)
     {
       hash_seed = malloc (PATH_MAX * sizeof (char));
+      if (!hash_seed)
+       return (EPSILON_FAIL);
+
       memset (hash_seed, 0, PATH_MAX * sizeof (char));
 
       if (e->key)
@@ -358,7 +361,7 @@
          strcat (hash_seed, buf);
        }
 
-      if (hash_seed)
+      if (strlen(hash_seed) > 0)
        e->hash = epsilon_hash (hash_seed);
       else
        e->hash = epsilon_hash (e->src);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/epsilon/src/lib/Epsilon.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- Epsilon.h   16 Jul 2005 15:50:10 -0000      1.8
+++ Epsilon.h   19 Aug 2005 18:24:00 -0000      1.9
@@ -40,7 +40,7 @@
 /* Set the part name as key (Edje for now)*/
 void epsilon_key_set (Epsilon * e, const char *key);
 /* Set the resolution*/
-void epsilon_resoltion_set (Epsilon * e, int w, int h);
+void epsilon_resolution_set (Epsilon * e, int w, int h);
 
 /*
  * the source filename




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to