Enlightenment CVS committal

Author  : tsauerbeck
Project : misc
Module  : embrace

Dir     : misc/embrace/src/plugins/maildir


Modified Files:
        maildir.c 


Log Message:
fixed memleaks caused by not freeing the result of e_db_str_get(). finally embrace 
will tell you when a mailbox cannot be loaded due to configuration errors.
===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/plugins/maildir/maildir.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- maildir.c   17 Apr 2004 10:16:39 -0000      1.5
+++ maildir.c   17 Apr 2004 15:05:51 -0000      1.6
@@ -1,5 +1,5 @@
 /*
- * $Id: maildir.c,v 1.5 2004/04/17 10:16:39 tsauerbeck Exp $
+ * $Id: maildir.c,v 1.6 2004/04/17 15:05:51 tsauerbeck Exp $
  *
  * Copyright (C) 2004 Embrace project.
  *
@@ -285,8 +285,10 @@
        /* read path */
        snprintf (key, sizeof (key), "%s/path", root);
 
-       if (!(str = e_db_str_get (edb, key)))
+       if (!(str = e_db_str_get (edb, key))) {
+               fprintf (stderr, "[maildir] 'path' not specified!\n");
                return false;
+       }
 
        embrace_expand_path (str, expanded, sizeof (expanded));
        free (str);




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to