Enlightenment CVS committal
Author : tsauerbeck
Project : misc
Module : embrace
Dir : misc/embrace/src/plugins/mbox
Modified Files:
mbox.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/mbox/mbox.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- mbox.c 31 Mar 2004 18:28:47 -0000 1.3
+++ mbox.c 17 Apr 2004 15:05:51 -0000 1.4
@@ -1,5 +1,5 @@
/*
- * $Id: mbox.c,v 1.3 2004/03/31 18:28:47 tsauerbeck Exp $
+ * $Id: mbox.c,v 1.4 2004/04/17 15:05:51 tsauerbeck Exp $
*
* Copyright (C) 2004 Embrace project.
*
@@ -161,8 +161,10 @@
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, "[mbox] 'path' not specified!\n");
return false;
+ }
embrace_expand_path (str, path, PATH_MAX + 1);
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