src/server/safs/objecttype.c

changeset 87
bdec069d2239
parent 77
f1cff81e425a
child 92
382bff43c6eb
--- a/src/server/safs/objecttype.c	Tue Jul 09 20:56:01 2013 +0200
+++ b/src/server/safs/objecttype.c	Thu Jul 11 14:21:23 2013 +0200
@@ -59,6 +59,11 @@
 
         // get the mime type for the ext from the server configuration
         ServerConfiguration *config = session_get_config(sn);
+        
+        WS_ASSERT(config);
+        WS_ASSERT(config->mimetypes);
+        WS_ASSERT(config->mimetypes->map);
+        
         char *type = ucx_map_sstr_get(config->mimetypes->map, ext);
         
         if(!type) {

mercurial