[vhffs-dev] [931] fix a small cache "corruption" which can happen if a query fail |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 931
Author: gradator
Date: 2007-09-20 21:18:20 +0000 (Thu, 20 Sep 2007)
Log Message:
-----------
fix a small cache "corruption" which can happen if a query fail
Modified Paths:
--------------
trunk/vhffs-fs/vhffsfs.c
Modified: trunk/vhffs-fs/vhffsfs.c
===================================================================
--- trunk/vhffs-fs/vhffsfs.c 2007-09-19 16:48:59 UTC (rev 930)
+++ trunk/vhffs-fs/vhffsfs.c 2007-09-20 21:18:20 UTC (rev 931)
@@ -347,6 +347,9 @@
}
static inline void vhffsfs_PGClear(char *query, PGresult *result) {
+
+ if(!result || !query) return;
+
#ifdef WITH_CACHE
vhffsfs_cache_unref(query);
#endif
@@ -355,6 +358,7 @@
#endif
}
+
char *vhffsfs_gethomedir() {
char query[128];
PGresult *res;