diff -r 49bb6c8ceb2b -r bdec069d2239 src/server/daemon/vfs.c --- a/src/server/daemon/vfs.c Tue Jul 09 20:56:01 2013 +0200 +++ b/src/server/daemon/vfs.c Thu Jul 11 14:21:23 2013 +0200 @@ -59,6 +59,8 @@ } void vfs_add(char *name, VFS *vfs) { + WS_ASSERT(name); + if(!vfs_map) { vfs_init(); } @@ -66,6 +68,9 @@ } VFSContext* vfs_request_context(Session *sn, Request *rq) { + WS_ASSERT(sn); + WS_ASSERT(rq); + VFSContext *ctx = pool_malloc(sn->pool, sizeof(VFSContext)); ctx->sn = sn; ctx->rq = rq; @@ -79,6 +84,8 @@ } SYS_FILE vfs_open(VFSContext *ctx, char *path, int oflags) { + WS_ASSERT(path); + Session *sn; Request *rq; pool_handle_t *pool; @@ -250,6 +257,8 @@ } VFS_DIR vfs_opendir(VFSContext *ctx, char *path) { + WS_ASSERT(path); + Session *sn; Request *rq; pool_handle_t *pool;