Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        econfig.c 


Log Message:
Empty string item in .cfg tweak.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/econfig.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- econfig.c   30 Oct 2005 19:40:49 -0000      1.7
+++ econfig.c   6 Nov 2005 13:51:19 -0000       1.8
@@ -183,7 +183,7 @@
    const char         *value;
 
    value = ECfgFileFindValue(ecf, key);
-   if (!value)
+   if (!value || !value[0])
       return NULL;
 
    return Estrdup(value);
@@ -417,7 +417,10 @@
        Esnprintf(buf, len, "%.3f", *((float *)ci->ptr));
        break;
      case ITEM_TYPE_STRING:
-       Esnprintf(buf, len, "%s", *((char **)ci->ptr));
+       if (*((char **)ci->ptr))
+          Esnprintf(buf, len, "%s", *((char **)ci->ptr));
+       else
+          buf[0] = '\0';
        break;
      }
 }




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to