projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2007-06-07 Murray Cumming <murrayc@murrayc.com>
[modest]
/
src
/
modest-cache-mgr.c
diff --git
a/src/modest-cache-mgr.c
b/src/modest-cache-mgr.c
index
6e64be6
..
87023d5
100644
(file)
--- a/
src/modest-cache-mgr.c
+++ b/
src/modest-cache-mgr.c
@@
-29,6
+29,7
@@
#include <config.h>
#include <modest-cache-mgr.h>
#include <config.h>
#include <modest-cache-mgr.h>
+#include <stdio.h>
/* 'private'/'protected' functions */
static void modest_cache_mgr_class_init (ModestCacheMgrClass *klass);
/* 'private'/'protected' functions */
static void modest_cache_mgr_class_init (ModestCacheMgrClass *klass);
@@
-183,6
+184,11
@@
modest_cache_mgr_get_cache (ModestCacheMgr* self, ModestCacheMgrCacheType type
GHashTable *cache;
g_return_val_if_fail (self, NULL);
GHashTable *cache;
g_return_val_if_fail (self, NULL);
+
+ if (!(type >= 0 && type <= MODEST_CACHE_MGR_CACHE_TYPE_NUM)) {
+ printf ("DEBUG: %s: incorrect type = %d\n", __FUNCTION__, type);
+ }
+
g_return_val_if_fail (type >= 0 && type <= MODEST_CACHE_MGR_CACHE_TYPE_NUM, NULL);
priv = MODEST_CACHE_MGR_GET_PRIVATE(self);
g_return_val_if_fail (type >= 0 && type <= MODEST_CACHE_MGR_CACHE_TYPE_NUM, NULL);
priv = MODEST_CACHE_MGR_GET_PRIVATE(self);